@authup/core-kit
Version:
Package containing global constants, types & interfaces.
29 lines • 848 B
TypeScript
import type { OAuth2SubKind } from '@authup/specs';
import type { Client } from '../client';
import type { Realm } from '../realm';
export interface OAuth2AuthorizationCode {
id: string;
code_challenge?: string | null;
code_challenge_method?: string | null;
scope?: string | null;
redirect_uri?: string | null;
id_token?: string | null;
nonce?: string | null;
client_id?: Client['id'] | null;
sub: string;
sub_kind: `${OAuth2SubKind}`;
realm_id: Realm['id'];
realm_name: Realm['name'];
}
export type OAuth2AuthorizationCodeRequest = {
response_type: string;
client_id?: string;
realm_id?: string;
redirect_uri?: string;
scope?: string;
state?: string;
nonce?: string;
code_challenge?: string;
code_challenge_method?: string;
};
//# sourceMappingURL=entity.d.ts.map