31 lines
925 B
TypeScript
31 lines
925 B
TypeScript
import type { JwtKeys } from '../validation/jwtkeys';
|
|
import type { StateValidationResult } from '../validation/state-validation-result';
|
|
|
|
export interface CallbackContext {
|
|
code: string;
|
|
refreshToken: string;
|
|
state: string;
|
|
sessionState: string | null;
|
|
authResult: AuthResult | null;
|
|
isRenewProcess: boolean;
|
|
jwtKeys: JwtKeys | null;
|
|
validationResult: StateValidationResult | null;
|
|
existingIdToken: string | null;
|
|
}
|
|
|
|
export interface AuthResult {
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
id_token?: string;
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
access_token?: string;
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
refresh_token?: string;
|
|
error?: any;
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
session_state?: any;
|
|
state?: any;
|
|
scope?: string;
|
|
expires_in?: number;
|
|
token_type?: string;
|
|
}
|