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

IdentityToolkit

import { IdentityToolkit } from "https://googleapis.deno.dev/v1/identitytoolkit:v3.ts";

Help the third party sites to implement federated login.

class IdentityToolkit {
constructor(client?: CredentialsClient, baseUrl?: string);
async relyingpartyCreateAuthUri(req: IdentitytoolkitRelyingpartyCreateAuthUriRequest): Promise<CreateAuthUriResponse>;
async relyingpartyDeleteAccount(req: IdentitytoolkitRelyingpartyDeleteAccountRequest): Promise<DeleteAccountResponse>;
async relyingpartyDownloadAccount(req: IdentitytoolkitRelyingpartyDownloadAccountRequest): Promise<DownloadAccountResponse>;
async relyingpartyEmailLinkSignin(req: IdentitytoolkitRelyingpartyEmailLinkSigninRequest): Promise<EmailLinkSigninResponse>;
async relyingpartyGetAccountInfo(req: IdentitytoolkitRelyingpartyGetAccountInfoRequest): Promise<GetAccountInfoResponse>;
async relyingpartyGetOobConfirmationCode(req: Relyingparty): Promise<GetOobConfirmationCodeResponse>;
async relyingpartyGetPublicKeys(): Promise<IdentitytoolkitRelyingpartyGetPublicKeysResponse>;
async relyingpartyGetRecaptchaParam(): Promise<GetRecaptchaParamResponse>;
async relyingpartyResetPassword(req: IdentitytoolkitRelyingpartyResetPasswordRequest): Promise<ResetPasswordResponse>;
async relyingpartySetAccountInfo(req: IdentitytoolkitRelyingpartySetAccountInfoRequest): Promise<SetAccountInfoResponse>;
async relyingpartySignupNewUser(req: IdentitytoolkitRelyingpartySignupNewUserRequest): Promise<SignupNewUserResponse>;
async relyingpartyUploadAccount(req: IdentitytoolkitRelyingpartyUploadAccountRequest): Promise<UploadAccountResponse>;
async relyingpartyVerifyAssertion(req: IdentitytoolkitRelyingpartyVerifyAssertionRequest): Promise<VerifyAssertionResponse>;
async relyingpartyVerifyCustomToken(req: IdentitytoolkitRelyingpartyVerifyCustomTokenRequest): Promise<VerifyCustomTokenResponse>;
async relyingpartyVerifyPassword(req: IdentitytoolkitRelyingpartyVerifyPasswordRequest): Promise<VerifyPasswordResponse>;
}

§Constructors

§
new IdentityToolkit(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§

Creates the URI used by the IdP to authenticate the user.

§

Delete user account.

§

Batch download user accounts.

§

Reset password for a user.

§

Returns the account info.

§
relyingpartyGetOobConfirmationCode(req: Relyingparty): Promise<GetOobConfirmationCodeResponse>
[src]

Get a code for user action confirmation.

§

Get project configuration.

§
relyingpartyGetPublicKeys(): Promise<IdentitytoolkitRelyingpartyGetPublicKeysResponse>
[src]

Get token signing public key.

§
relyingpartyGetRecaptchaParam(): Promise<GetRecaptchaParamResponse>
[src]

Get recaptcha secure param.

§

Reset password for a user.

§

Send SMS verification code.

§

Set account info for a user.

§

Set project configuration.

§

Signup new user.

§

Batch upload existing user accounts.

§

Verifies the assertion returned by the IdP.

§

Verifies the developer asserted ID token.

§

Verifies the user entered password.

§

Verifies ownership of a phone number and creates/updates the user account accordingly.