From a9b81f79af3bab400e669d108ae780e86e872de2 Mon Sep 17 00:00:00 2001 From: williamtorres1 Date: Mon, 24 Feb 2020 22:03:27 -0300 Subject: [PATCH] a simple and clean guide for github authentication --- docs/config-examples/GITHUB.md | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docs/config-examples/GITHUB.md 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