Skip to content

Investigate refresh token setting issue in headerΒ #173

@hanlinc27

Description

@hanlinc27

Issue with the refresh token being set inside of the cookies from the BaseAPIClient.ts
This should auto-generate a new token after an hour if it's invalid, but previously showed incorrect behaviour in production as well as locally. Specifically, this has only been seen with logout on the REST API's.

Opening this ticket to investigate behaviour locally (refresh token set in cookies).

Steps to test:

  • Can change the timing on the expiry and see if a new refresh token is generated and being set correctly
  • Could also entirely be not related to the API Client, and can test by hitting the firebase backend endpoint

Related PRs:
#162

Temp Fixes By Teams:
uwblueprint/ccbc#85
uwblueprint/community-fridge-kw#193

Error Messages
{"message":"[/app/utilities/firebaseRestClient.ts] Failed to refresh token via Firebase REST API, status code = 400, error message = INVALID_REFRESH_TOKEN","level":"error","timestamp":"2022-03-05T19:26:26.597Z"}
image (3)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions