-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Access tokens expire really quickly and require the user to refresh the page.
We should be able to refresh these ourselves on the frontend prior to expiration
NotAuthorizedException: Access Token has expired
at de_NotAuthorizedExceptionRes (/Users/matthew/git/3dp4me/node_modules/.pnpm/@[email protected]/node_modules/@aws-sdk/client-cognito-identity-provider/dist-cjs/index.js:4700:21)
at de_CommandError (/Users/matthew/git/3dp4me/node_modules/.pnpm/@[email protected]/node_modules/@aws-sdk/client-cognito-identity-provider/dist-cjs/index.js:4342:19)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async /Users/matthew/git/3dp4me/node_modules/.pnpm/@[email protected]/node_modules/@smithy/middleware-serde/dist-cjs/index.js:35:20
at async /Users/matthew/git/3dp4me/node_modules/.pnpm/@[email protected]/node_modules/@smithy/core/dist-cjs/index.js:167:18
at async /Users/matthew/git/3dp4me/node_modules/.pnpm/@[email protected]/node_modules/@smithy/middleware-retry/dist-cjs/index.js:321:38
at async /Users/matthew/git/3dp4me/node_modules/.pnpm/@[email protected]/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22
at async getUserByAccessToken (/Users/matthew/git/3dp4me/apps/backend/dist/src/utils/aws/awsUsers.js:36:18)
at async requireAuthentication (/Users/matthew/git/3dp4me/apps/backend/dist/src/middleware/authentication.js:20:22) {
'$fault': 'client',
'$metadata': {
httpStatusCode: 400,
requestId: '7bb4e3ec-6f83-4c5b-8fc6-1f12e4903822',
extendedRequestId: undefined,
cfId: undefined,
attempts: 1,
totalRetryDelay: 0
},
__type: 'NotAuthorizedException'
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels