@types/auth0.widget

TypeScript definitions for Auth0Widget.js

Stats

StarsIssuesVersionUpdatedCreatedSize
@types/auth0.widget
0.0.373 months ago5 years agoMinified + gzip package size for @types/auth0.widget in KB

Readme

Installation

npm install --save @types/auth0.widget

Summary

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

Details

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

index.d.ts

// Type definitions for Auth0Widget.js
// Project: http://auth0.com
// Definitions by: Robert McLaws <https://github.com/advancedrei>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.9

/// <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: Wed, 07 Jul 2021 21:44:39 GMT
  • Dependencies: @types/auth0-js
  • Global values: Auth0Widget

Credits

These definitions were written by Robert McLaws.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.