-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how do you get the access_token? #14
Comments
Yes, the authentication flow is buried to the provider class https://github.com/laardee/serverless-authentication/blob/master/src/provider.js. How are you planning to use the access_token later on? |
I was planning on making subsequent api calls once the initial flow has been started. I'd use the auth'd api from within the lambda function/app later on. Which would require access to the token. |
I don't see a reason why it couldn't be returned along with the profile. I added it to provider class and it will be available in |
thanks! |
Heyy i tried to install the project but it is giving me error.I tried to figure it out but no clue. npm ERR! Linux 3.19.0-58-generic npm ERR! Error: EACCES: permission denied, mkdir '/home/nishtha/.npm/lodash/4.13.0' npm ERR! Please include the following file with any support request: npm ERR! serverless-authentication-boilerplate@0.6.3 install: npm ERR! Please include the following file with any support request: |
@nishtha3006 you could create a new issue about this, but I guess the problem could be the npm install script. You could remove
from package json. Then run |
I'm writing a custom provider, and looking at how to get access to the access_token in the callback respones. It looks buried in serverless-authentication which seems to return a profile, but no access_token. But maybe I'm missing something?
The text was updated successfully, but these errors were encountered: