mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 14:41:28 -07:00
increase token expiration workaround
This commit is contained in:
@@ -12,8 +12,11 @@ import { sign, verify } from 'hono/jwt'
|
|||||||
|
|
||||||
import { GAME_VERSION } from '@repo/domain'
|
import { GAME_VERSION } from '@repo/domain'
|
||||||
|
|
||||||
/** Token lifetime in seconds (mirrored in the `expires_in` response field). */
|
// Token lifetime in seconds (mirrored in the `expires_in` response field).
|
||||||
export const TOKEN_TTL_SECONDS = 3600
|
// @todo Allegedly, the game is supposed to refresh tokens every 3600 seconds, but it doesn't.
|
||||||
|
// It's possible our refresh_token implementation is broken, but for now we just make the token
|
||||||
|
// last a day so the client doesn't have to refresh it.
|
||||||
|
export const TOKEN_TTL_SECONDS = 86400
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate an HS256 token and return its `sub` (account id) claim, or `null` when
|
* Validate an HS256 token and return its `sub` (account id) claim, or `null` when
|
||||||
|
|||||||
Reference in New Issue
Block a user