@tpointurier/ally-microsoft
Version:
An ally driver for Microsoft
18 lines (17 loc) • 573 B
TypeScript
import type { AllyDriverContract, LiteralStringUnion, Oauth2DriverConfig } from '@adonisjs/ally/types';
export interface MicrosoftDriverContract extends AllyDriverContract<MicrosoftToken, MicrosoftScopes> {
version: 'oauth2';
}
export type MicrosoftDriverConfig = Oauth2DriverConfig & {
scopes?: LiteralStringUnion<MicrosoftScopes>[];
tenantId?: string;
};
export type MicrosoftToken = {
expiresAt: Date;
expiresIn: number;
refreshToken: string;
scope: string[];
token: string;
type: 'bearer';
};
export type MicrosoftScopes = 'openid';