@blockchain-lab-um/oidc-types
Version:
Types for OIDC.
16 lines (13 loc) • 517 B
TypeScript
import { TokenRequestOAuth2, TokenResponseOAuth2 } from './oauth2.js';
interface TokenRequest extends Omit<TokenRequestOAuth2, 'grant_type'> {
grant_type: 'authorization_code' | 'urn:ietf:params:oauth:grant-type:pre-authorized_code';
'pre-authorized_code'?: string;
user_pin?: string;
}
interface TokenResponse extends TokenResponseOAuth2 {
c_nonce?: string;
c_nonce_expires_in?: number;
authorization_pending?: boolean;
interval?: number;
}
export type { TokenRequest, TokenResponse };