-
Notifications
You must be signed in to change notification settings - Fork 232
Following Quickstart guide Fails #29
Comments
I was able to track down that you're using the
And didn't have any troubles.. so somewhere in your code... localStorage isn't working correctly. |
Finally got a very simple angular2 app working... but the instant i enabled HashLocationStrategy (https://angular.io/api/common/HashLocationStrategy) things blew up. I believe it is because this line assumes there will only be one hash (#) within the url... https://github.com/okta/okta-auth-js/blob/f162b052efd664dd0db843032c1970dec4639e66/lib/token.js#L599 |
Hi @danielheth , in its default configuration the AuthJS library does need to use the # fragment. You can configure the callback to be query-parameter based, which would allow you to use the # fragment for your own routing instead. However I'm not sure if this library has property abstracted those configuration options. I'm referring to the |
The OAuth spec requires that only one hash fragment exist.
So you have two options:
|
Closing down this issue due the answers provided. Please reopen is the problem persists. |
Following quickstart guide (here: https://developer.okta.com/quickstart/#/angular/nodejs/express) but having problems post-login.
Clearly i have logged in, and I have tokens, however they are sitting within my Cookies not Local Storage like the guide says.
Not sure if this is affecting the isAuthenticated function... but unable to retrieve token as a result for use.
The text was updated successfully, but these errors were encountered: