Skip to content

Instantly share code, notes, and snippets.

@ryanalane
Created March 12, 2019 16:58
Show Gist options
  • Save ryanalane/9602c6106f7855edfddf1e46e469681e to your computer and use it in GitHub Desktop.
Save ryanalane/9602c6106f7855edfddf1e46e469681e to your computer and use it in GitHub Desktop.
TS interface for Auth0LockPasswordless
interface Auth0LockPasswordlessStatic {
new (clientId: string, domain: string): Auth0LockPasswordlessStatic;
getProfile(token: string, callback: (error: Auth0Error, profile: Auth0UserProfile) => void) : void;
close(): void;
destroy(): void;
parseHash(hash: string): Auth0DecodedHash;
logout(query: any): void;
requestGravatar(email: string): void;
emailcode(options?: Auth0LockConstructorOptions): void;
socialOrEmailcode(options?: Auth0LockConstructorOptions): void;
}
declare var Auth0LockPasswordless: Auth0LockPasswordlessStatic;
declare module "auth0-lock" {
export var Auth0LockPasswordless;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment