Jaaneek / t3-supabase-app-router

Nextjs 14 APP Router, t3 stack, Supabase (Auth, storage, database)
163 stars 23 forks source link

JWT expiration crashes app #11

Open josephdburdick opened 9 months ago

josephdburdick commented 9 months ago

Getting the following error when running the app with one of the authenticated "example" users after an unknown period of time:

⨯ node_modules/.pnpm/@trpc+client@10.44.1_@trpc+server@10.44.1/node_modules/@trpc/client/dist/TRPCClientError-0de4d231.mjs (37:15) @ TRPCClientError.from
 ⨯ TRPCClientError: invalid JWT: unable to parse or verify signature, token is expired by 50m57s
    at eval (./src/trpc/server.ts:67:98)
digest: "1906314787"
null

I would expect the user to be logged out instead of crashing the app.

josephdburdick commented 6 months ago

This happens when I leave the app running, close my laptop, and return.