-
Notifications
You must be signed in to change notification settings - Fork 97
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
Always get error in chapter-5 #6
Comments
I had a similar issue and the I was able to fix this problem by changing script tag as: From: <script src="https://cdn.auth0.com/js/lock-9.min.js"></script> I think it wants you to use the latest release. |
But there's still some problem with the sign-out button, stays hidden for some reason |
I am having a similar problem, it is not storing the user token even though it is showing a successful login in auth0. I can see the auth0 response so i don't think it is a call back issue. |
This still doesn't work, for some reason it reloads the page after the callback and clears the token. |
I've managed to get this to work. It doesn't work with v10 of the auth0 library, so changing the script tag to the v10 library will stop it working. |
If you get a "unknown Algorithm" error from the lambda function, it's probably because RS256 is selected instead of HS256 in the oauth tab in advanced settings. |
modified user-controller.js to be compatible with lock v11. modified oauth tab in advanced settings to be HS256 from RS256. still getting error "JsonWebTokenError: invalid algorithm" occurs. |
Hi, I am getting the same issue still, I have pulled in the recent repo but I keep getting issues signing in. When I use a Social provider (Google) where I am still using the Auth0 developer key to do the Authentication I get the below error: In response to the above error I added Github as a social provider and added the Client ID and the Client secrete so that the app wont use the developer keys, but when I do that I get the below error I have tried to resolve the issue for weeks but I have not been able to find a solution, I would greatly appreciate any help as I do not want to give up on this book |
So the issue was because I was using ock-9.min.js. In the index file i replaced One thing to note is that the show function works differently in V11. Below is my implementation of user-controller.js
|
Word of warning, I am a beginner so take what I have said with a grain of salt, I encourage you to look online to validate my claims I have discovered an issue on the lambda code that causes it not to interact with the above code, the reason I believe is that the code example in the book and the repository is out of date as Auth0 has updated the way it does the authentication **Authors intended design ** Why the incompatibilityWebsite endIn the above comment, the 'on' method gives you back an access token not an id token and as this blog says, you need an id token to verify but you will need an access token to get information from your social provider like email address, profile pictures etc. Lambda end
FixWebsite end1.Request for the access token and id token Lambda1.Seperate the id token from the access token |
Hi,
thank you for this great book! it's really help us to understand serverless.
But when i was practice chap5 , i build local website and setting Auth0 well.
When i was try to login Auth0 with Google Account (all api is setting well whatever in js or google )
it's always show alert "There was an error" and Auth0 show "There was an error processing the login."
when i check Auth0 log dashboard ,it's only show "Success login"
i don't know what's happen...can you help this issues?
thank you
The text was updated successfully, but these errors were encountered: