Auth0-spa-js: Please provide more in depth examples... getTokenSilently - react...

Created on 23 Jul 2019  路  8Comments  路  Source: auth0/auth0-spa-js

For me it"s hard to understand what's happening inside this stuff. So would be great for better examples. Everytime reloading/hot reload while developing, the app asks for login, that sucks alot. Even like described that it will automagically check with getTokenSilently is not happening. Don"t know why. But more detailed explanations would be great.

Most helpful comment

Here's some of the limitations of using Development keys: https://auth0.com/docs/connections/social/devkeys#limitations-of-developer-keys

Here's a step-by-step guide on how to setup your google connection: https://auth0.com/docs/connections/social/google

When you use Auth0's development keys, getTokenSilently won't work.

All 8 comments

Are you by any chance logging in using a social account + using development keys for your social connections in the Auth0 dashboard?

Yep i'm using google login.

and did you setup your own google keys or are you using Auth0's development keys?

where could i set these things up?

Here's some of the limitations of using Development keys: https://auth0.com/docs/connections/social/devkeys#limitations-of-developer-keys

Here's a step-by-step guide on how to setup your google connection: https://auth0.com/docs/connections/social/google

When you use Auth0's development keys, getTokenSilently won't work.

Okay will test it out ! Thanks with the first feedback and i will provide infos when i'm done :)

Perfect! Let me know how it goes.

For others that come across this as I did, I believe my issue was related to https://github.com/auth0-samples/auth0-react-samples/issues/166, which has been incredibly confusing. I will update this comment if that is not the case.

Since there's no way to transfer settings to a new tenant, I'm going to have to set it all up manually again, which would have been detrimental in production and will still be incredibly tedious for my multi-testing-environment setup currently.

Edit: still haven't found the cause.

I am getting 400 responses from authorize and must re-log-in every time I refresh (really whenever the page is hot reloaded), despite using the new universal login and having my own client id and secret set up.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Arnaud73 picture Arnaud73  路  7Comments

szilagyikinga picture szilagyikinga  路  6Comments

yirenlu92 picture yirenlu92  路  4Comments

alexislucas-toast picture alexislucas-toast  路  3Comments

stupidSheep picture stupidSheep  路  4Comments