MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / decodeRefreshJWT

Function decodeRefreshJWT

apps/app-server/src/utils/jwt.ts:59–67  ·  view source on GitHub ↗
(
  token: string | Buffer,
)

Source from the content-addressed store, hash-verified

57}
58const _decodeRefreshJWT = createDecoder();
59export function decodeRefreshJWT<TokenType>(
60 token: string | Buffer,
61): TokenType | null {
62 try {
63 return _decodeRefreshJWT(token);
64 } catch (error) {
65 return null;
66 }
67}
68
69export function generateTokens(input: {
70 userId: string;

Callers 1

refreshFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected