Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AuthenticationStrategy

type AuthenticationStrategy = {
implementation: Auth.Implementation<Components>;
accountConsumer: (username: string) => Promise<AccountLinkingConsumer>;
accountProducer: (username: string) => Promise<AccountLinkingProducer>;
isUsernameAvailable: (username: string) => Promise<boolean>;
isUsernameValid: (username: string) => Promise<boolean>;
register: (options: {
username: string;
email?: string;
}
) => Promise<{
success: boolean;
}
>
;
session: () => Promise<Maybe<Session>>;
}
;

§Type

§
{
implementation: Auth.Implementation<Components>;
accountConsumer: (username: string) => Promise<AccountLinkingConsumer>;
accountProducer: (username: string) => Promise<AccountLinkingProducer>;
isUsernameAvailable: (username: string) => Promise<boolean>;
isUsernameValid: (username: string) => Promise<boolean>;
register: (options: {
username: string;
email?: string;
}
) => Promise<{
success: boolean;
}
>
;
session: () => Promise<Maybe<Session>>;
}
[src]