Skip to content

User is required to re-auth frequently | 401 response from /api/auth/google #1152

@tyler-dane

Description

@tyler-dane

Where did this happen?

Hosted (app.compasscalendar.com)

Expected Behavior

When going to Compass, the user shouldn't have to reauthenticate with Google oauth on a daily basis

Current Behavior

When going to Compass, the user is required to go through the full login flow on a daily basis

Steps to Reproduce

  1. Open devtools
  2. Go to Compass
  3. Wait a day
  4. Go to Compass again
  5. Look at /refresh call: https://app.compasscalendar.com/api/session/refresh and see it responds with 401 and the below payload
  6. Look at /api/auth/google call and see that it also returns 401
  7. You'll be redirected to the login page after the backend returns the 401 response

401 payload:

{message: "unauthorised"}

Backend logs:

0|backend  | 401 GET /api/auth/google 0.443ms Thu, 23 Oct 2025 01:01:02 GMT
Image Image

Image[/+][-]

Possible Solution

What is the cause of the refresh token failing?

Context

This is a very negative experience that will cause even the most supportive users to give up.

Metadata

Metadata

Assignees

Labels

backendWork related to improving the Compass API. More than 70% of the PR should be backend focused.

Type

Projects

Status

In progress

Relationships

None yet

Development

No branches or pull requests

Issue actions