isRefreshTokenValid
Function: isRefreshTokenValid()
isRefreshTokenValid(
db,token,userId):Promise<boolean>
Defined in: src/services/auth/refreshStore.ts:95
Returns true only if a row exists for the given userId and token hash, and it is not revoked and not expired.
Parameters
db
Drizzle client.
token
string
Raw refresh token (will be hashed for lookup).
userId
string
User ID to match.
Returns
Promise<boolean>
Promise resolving to true when the token is valid and not expired.