fix: get env variable dynamically to avoid secret leakage
This commit is contained in:
@@ -40,7 +40,7 @@ export async function signPayload(
|
||||
return `${payloadB64u}.${sigB64u}`;
|
||||
}
|
||||
|
||||
export async function verifyAndDecode<T = any>(
|
||||
export async function verifyAndDecode<T = unknown>(
|
||||
token: string,
|
||||
secret: string,
|
||||
): Promise<{ valid: boolean; payload?: T }> {
|
||||
|
||||
Reference in New Issue
Block a user