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

Auth.Implementation

type Implementation<C> = {
type: string;
session: (
components: C,
authenticatedUsername: Maybe<string>,
config: Configuration,
eventEmitters: {},
) => Promise<Maybe<Session>>
;
isUsernameAvailable: (username: string) => Promise<boolean>;
isUsernameValid: (username: string) => Promise<boolean>;
register: (options: {
username: string;
email?: string;
}
) => Promise<{
success: boolean;
}
>
;
canDelegateAccount: (username: string) => Promise<boolean>;
delegateAccount: (username: string, audience: string) => Promise<Record<string, unknown>>;
linkDevice: (username: string, data: Record<string, unknown>) => Promise<void>;
createChannel: (options: ChannelOptions) => Promise<Channel>;
}
;

§Type Parameters

§Type

§
{
type: string;
session: (
components: C,
authenticatedUsername: Maybe<string>,
config: Configuration,
eventEmitters: {},
) => Promise<Maybe<Session>>
;
isUsernameAvailable: (username: string) => Promise<boolean>;
isUsernameValid: (username: string) => Promise<boolean>;
register: (options: {
username: string;
email?: string;
}
) => Promise<{
success: boolean;
}
>
;
canDelegateAccount: (username: string) => Promise<boolean>;
delegateAccount: (username: string, audience: string) => Promise<Record<string, unknown>>;
linkDevice: (username: string, data: Record<string, unknown>) => Promise<void>;
createChannel: (options: ChannelOptions) => Promise<Channel>;
}
[src]