@types/auth0.widget
TypeScript icon, indicating that this package has built-in type declarations

0.0.41 • Public • Published

Installation

npm install --save @types/auth0.widget

Summary

This package contains type definitions for auth0.widget (http://auth0.com).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/auth0.widget.

index.d.ts

/// <reference types="auth0-js" />

interface Auth0WidgetStatic {
    new(params: Auth0Constructor): Auth0WidgetStatic;

    getClient(): import("auth0-js").Authentication;
    getProfile(token: string, callback: Function): import("auth0-js").Auth0UserProfile;
    parseHash(hash: string): import("auth0-js").Auth0DecodedHash;
    reset(options: Auth0Options, callback?: Function): Auth0WidgetStatic;
    signin(options: Auth0Options, widgetLoadedCallback?: Function, popupCallback?: Function): Auth0WidgetStatic;
    signup(
        options: Auth0Options,
        callback: (
            error?: import("auth0-js").Auth0Error,
            profile?: import("auth0-js").Auth0UserProfile,
            id_token?: string,
            access_token?: string,
            state?: string,
        ) => any,
    ): Auth0WidgetStatic;
}

type ClientOptions = import("auth0-js").AuthOptions;
interface Auth0Constructor extends ClientOptions {
    assetsUrl?: string | undefined;
    cdn?: string | undefined;
    dict?: any;
}

interface Auth0Options {
    access_token?: string | undefined;
    connections?: string[] | undefined;
    container?: string | undefined;
    enableReturnUserExperience?: boolean | undefined;
    extraParameters?: any;
    icon?: string | undefined;
    protocol?: string | undefined;
    request_id?: string | undefined;
    scope?: string | undefined;
    showIcon?: boolean | undefined;
    showForgot?: boolean | undefined;
    showSignup?: boolean | undefined;
    state?: any;
    userPwdConnectionName?: string | undefined;
    username_style?: string | undefined;
}

declare var Auth0Widget: Auth0WidgetStatic;

Additional Details

  • Last updated: Tue, 30 Jan 2024 21:35:45 GMT
  • Dependencies: @types/auth0-js

Credits

These definitions were written by Robert McLaws.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/auth0.widget

Weekly Downloads

0

Version

0.0.41

License

MIT

Unpacked Size

5.94 kB

Total Files

5

Last publish

Collaborators

  • types