Created
March 7, 2018 13:44
-
-
Save ilake/8b8ed8839cd26c3e78262a6f47cbdf18 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let result = await fetch({ | |
api: "http://localhost:3000/users/auth/google_oauth2_for_api/callback", | |
method: 'get', | |
params: { | |
code: response.params.code, | |
redirect_uri: redirectUrl | |
} | |
}) | |
// The result is from rails side. | |
const { auth_token, auth_email } = result.data; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment