Auth.Implementation
type Implementation<C> = {
type: string;
session: (
components: C,
authenticatedUsername: Maybe<string>,
config: Configuration,
eventEmitters: {
) => Promise<Maybe<Session>>; fileSystem: Events.Emitter<Events.FileSystem>;
},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
§
{
[src]type: string;
session: (
components: C,
authenticatedUsername: Maybe<string>,
config: Configuration,
eventEmitters: {
) => Promise<Maybe<Session>>; fileSystem: Events.Emitter<Events.FileSystem>;
},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>;
}