Created
March 12, 2019 16:58
-
-
Save ryanalane/9602c6106f7855edfddf1e46e469681e to your computer and use it in GitHub Desktop.
TS interface for Auth0LockPasswordless
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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