feat: add admin accounts and image templates
This commit is contained in:
@@ -75,7 +75,8 @@ export async function verifyAuthJwt(token: string, config = getAuthRuntimeConfig
|
||||
export function createSessionFromClaims(
|
||||
claims: AuthTokenClaims,
|
||||
config: AuthRuntimeConfig,
|
||||
tokenResponseExpiresIn?: number
|
||||
tokenResponseExpiresIn?: number,
|
||||
token?: { accessToken?: string; tokenType?: string }
|
||||
): AuthSession {
|
||||
const now = Math.floor(Date.now() / 1000);
|
||||
const jwtExpiry = numberClaim(claims.exp);
|
||||
@@ -85,7 +86,9 @@ export function createSessionFromClaims(
|
||||
version: 1,
|
||||
user: userFromClaims(claims, config),
|
||||
issuedAt: now,
|
||||
expiresAt
|
||||
expiresAt,
|
||||
accessToken: token?.accessToken,
|
||||
tokenType: token?.tokenType
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user