Authorization not refreshing #29

Closed
opened 2019-09-05 12:27:59 +00:00 by danieljsummers · 1 comment
danieljsummers commented 2019-09-05 12:27:59 +00:00 (Migrated from github.com)

When returning to the site after being on it the previous day, it picks up as not being logged on (which is fine). After going through the log on process, everything comes up fine. However, ~30 seconds from that time, the menu changes back to the non-logged-on version. API calls still work, but something is switching isAuthenticated back to false.

I suspect the issue lies in the refreshTokens function.

When returning to the site after being on it the previous day, it picks up as not being logged on (which is fine). After going through the log on process, everything comes up fine. However, ~30 seconds from that time, the menu changes back to the non-logged-on version. API calls still work, but something is switching `isAuthenticated` back to `false`. _I suspect the issue lies in the `refreshTokens` function._
danieljsummers commented 2019-10-14 14:45:18 +00:00 (Migrated from github.com)

Resolved this without code; there is a separate spot in the Auth0 config for which origins are allowed to make these types of requests. I put https://prayerjournal.me in that spot, and the existing code now works.

Resolved this without code; there is a separate spot in the Auth0 config for which origins are allowed to make these types of requests. I put https://prayerjournal.me in that spot, and the existing code now works.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: bit-badger/myPrayerJournal#29
No description provided.