mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-12 00:17:03 +02:00
💬 Update email subject lines (#652)
This commit is contained in:
parent
da97c94012
commit
38454302b3
6 changed files with 15 additions and 10 deletions
|
@ -10,7 +10,7 @@ declare module "iron-session" {
|
|||
}
|
||||
}
|
||||
|
||||
export const decryptToken = async <P = UserSessionData>(
|
||||
export const decryptToken = async <P extends Record<string, unknown>>(
|
||||
token: string,
|
||||
): Promise<P | null> => {
|
||||
const payload = await unsealData(token, {
|
||||
|
@ -23,7 +23,7 @@ export const decryptToken = async <P = UserSessionData>(
|
|||
return payload as P;
|
||||
};
|
||||
|
||||
export const createToken = async <T = UserSessionData>(
|
||||
export const createToken = async <T extends Record<string, unknown>>(
|
||||
payload: T,
|
||||
options?: {
|
||||
ttl?: number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue