diff --git a/docs/config-examples/GITHUB.md b/docs/config-examples/GITHUB.md new file mode 100644 index 0000000..1ca868e --- /dev/null +++ b/docs/config-examples/GITHUB.md @@ -0,0 +1,38 @@ +# GITHUB + +``` + import OAuthManager from 'react-native-oauth'; + + const config = { + github: { + client_id: ClientID, + client_secret: ClientSecret + } + } + + const manager = new OAuthManager(' `${github}://oauth`, + } + }) + + manager.authorize('github') + .then(resp => console.log(`Your request returned success:`, resp)) + .catch(err => console.log(`Your request returned error:`, err)) + + return( + + Hello friend! + + ) + } + +``` \ No newline at end of file