Skip to content

Commit

Permalink
kukai changes
Browse files Browse the repository at this point in the history
  • Loading branch information
klassare committed Jan 17, 2024
1 parent 6749a2b commit 92bb7ea
Show file tree
Hide file tree
Showing 30 changed files with 21,883 additions and 16 deletions.
2,268 changes: 2,268 additions & 0 deletions dist/customauth.cjs.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/customauth.cjs.js.map

Large diffs are not rendered by default.

2,120 changes: 2,120 additions & 0 deletions dist/customauth.esm.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/customauth.esm.js.map

Large diffs are not rendered by default.

16,595 changes: 16,595 additions & 0 deletions dist/customauth.umd.min.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions dist/customauth.umd.min.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
1 change: 1 addition & 0 deletions dist/customauth.umd.min.js.map

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions dist/types/handlers/AbstractLoginHandler.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { LOGIN_TYPE, UX_MODE_TYPE } from "../utils/enums";
import { Auth0ClientOptions, ILoginHandler, LoginWindowResponse, TorusGenericObject, TorusVerifierResponse } from "./interfaces";
declare abstract class AbstractLoginHandler implements ILoginHandler {
readonly clientId: string;
readonly verifier: string;
readonly redirect_uri: string;
readonly typeOfLogin: LOGIN_TYPE;
readonly uxMode: UX_MODE_TYPE;
readonly redirectToOpener?: boolean;
readonly jwtParams?: Auth0ClientOptions;
readonly customState?: TorusGenericObject;
nonce: string;
finalURL: URL;
constructor(clientId: string, verifier: string, redirect_uri: string, typeOfLogin: LOGIN_TYPE, uxMode: UX_MODE_TYPE, redirectToOpener?: boolean, jwtParams?: Auth0ClientOptions, customState?: TorusGenericObject);
get state(): string;
handleLoginWindow(params: {
locationReplaceOnRedirect?: boolean;
popupFeatures?: string;
}): Promise<LoginWindowResponse>;
abstract getUserInfo(params: LoginWindowResponse): Promise<TorusVerifierResponse>;
abstract setFinalUrl(): void;
}
export default AbstractLoginHandler;
18 changes: 18 additions & 0 deletions dist/types/handlers/DiscordHandler.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { LOGIN_TYPE, UX_MODE_TYPE } from "../utils/enums";
import AbstractLoginHandler from "./AbstractLoginHandler";
import { Auth0ClientOptions, LoginWindowResponse, TorusGenericObject, TorusVerifierResponse } from "./interfaces";
export default class DiscordHandler extends AbstractLoginHandler {
readonly clientId: string;
readonly verifier: string;
readonly redirect_uri: string;
readonly typeOfLogin: LOGIN_TYPE;
readonly uxMode: UX_MODE_TYPE;
readonly redirectToOpener?: boolean;
readonly jwtParams?: Auth0ClientOptions;
readonly customState?: TorusGenericObject;
private readonly RESPONSE_TYPE;
private readonly SCOPE;
constructor(clientId: string, verifier: string, redirect_uri: string, typeOfLogin: LOGIN_TYPE, uxMode: UX_MODE_TYPE, redirectToOpener?: boolean, jwtParams?: Auth0ClientOptions, customState?: TorusGenericObject);
setFinalUrl(): void;
getUserInfo(params: LoginWindowResponse): Promise<TorusVerifierResponse>;
}
18 changes: 18 additions & 0 deletions dist/types/handlers/FacebookHandler.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { LOGIN_TYPE, UX_MODE_TYPE } from "../utils/enums";
import AbstractLoginHandler from "./AbstractLoginHandler";
import { Auth0ClientOptions, LoginWindowResponse, TorusGenericObject, TorusVerifierResponse } from "./interfaces";
export default class FacebookHandler extends AbstractLoginHandler {
readonly clientId: string;
readonly verifier: string;
readonly redirect_uri: string;
readonly typeOfLogin: LOGIN_TYPE;
readonly uxMode: UX_MODE_TYPE;
readonly redirectToOpener?: boolean;
readonly jwtParams?: Auth0ClientOptions;
readonly customState?: TorusGenericObject;
private readonly RESPONSE_TYPE;
private readonly SCOPE;
constructor(clientId: string, verifier: string, redirect_uri: string, typeOfLogin: LOGIN_TYPE, uxMode: UX_MODE_TYPE, redirectToOpener?: boolean, jwtParams?: Auth0ClientOptions, customState?: TorusGenericObject);
setFinalUrl(): void;
getUserInfo(params: LoginWindowResponse): Promise<TorusVerifierResponse>;
}
19 changes: 19 additions & 0 deletions dist/types/handlers/GoogleHandler.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { LOGIN_TYPE, UX_MODE_TYPE } from "../utils/enums";
import AbstractLoginHandler from "./AbstractLoginHandler";
import { Auth0ClientOptions, LoginWindowResponse, TorusGenericObject, TorusVerifierResponse } from "./interfaces";
export default class GoogleHandler extends AbstractLoginHandler {
readonly clientId: string;
readonly verifier: string;
readonly redirect_uri: string;
readonly typeOfLogin: LOGIN_TYPE;
readonly uxMode: UX_MODE_TYPE;
readonly redirectToOpener?: boolean;
readonly jwtParams?: Auth0ClientOptions;
readonly customState?: TorusGenericObject;
private readonly RESPONSE_TYPE;
private readonly SCOPE;
private readonly PROMPT;
constructor(clientId: string, verifier: string, redirect_uri: string, typeOfLogin: LOGIN_TYPE, uxMode: UX_MODE_TYPE, redirectToOpener?: boolean, jwtParams?: Auth0ClientOptions, customState?: TorusGenericObject);
setFinalUrl(): void;
getUserInfo(params: LoginWindowResponse): Promise<TorusVerifierResponse>;
}
3 changes: 3 additions & 0 deletions dist/types/handlers/HandlerFactory.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { CreateHandlerParams, ILoginHandler } from "./interfaces";
declare const createHandler: ({ clientId, redirect_uri, typeOfLogin, verifier, jwtParams, redirectToOpener, uxMode, customState, registerOnly, }: CreateHandlerParams) => ILoginHandler;
export default createHandler;
19 changes: 19 additions & 0 deletions dist/types/handlers/JwtHandler.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { LOGIN_TYPE, UX_MODE_TYPE } from "../utils/enums";
import AbstractLoginHandler from "./AbstractLoginHandler";
import { Auth0ClientOptions, LoginWindowResponse, TorusGenericObject, TorusVerifierResponse } from "./interfaces";
export default class JwtHandler extends AbstractLoginHandler {
readonly clientId: string;
readonly verifier: string;
readonly redirect_uri: string;
readonly typeOfLogin: LOGIN_TYPE;
readonly uxMode: UX_MODE_TYPE;
readonly redirectToOpener?: boolean;
readonly jwtParams?: Auth0ClientOptions;
readonly customState?: TorusGenericObject;
private readonly SCOPE;
private readonly RESPONSE_TYPE;
private readonly PROMPT;
constructor(clientId: string, verifier: string, redirect_uri: string, typeOfLogin: LOGIN_TYPE, uxMode: UX_MODE_TYPE, redirectToOpener?: boolean, jwtParams?: Auth0ClientOptions, customState?: TorusGenericObject);
setFinalUrl(): void;
getUserInfo(params: LoginWindowResponse): Promise<TorusVerifierResponse>;
}
20 changes: 20 additions & 0 deletions dist/types/handlers/MockLoginHandler.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { LOGIN_TYPE, UX_MODE_TYPE } from "../utils/enums";
import AbstractLoginHandler from "./AbstractLoginHandler";
import { Auth0ClientOptions, LoginWindowResponse, TorusGenericObject, TorusVerifierResponse } from "./interfaces";
export default class MockLoginHandler extends AbstractLoginHandler {
readonly clientId: string;
readonly verifier: string;
readonly redirect_uri: string;
readonly typeOfLogin: LOGIN_TYPE;
readonly uxMode: UX_MODE_TYPE;
readonly redirectToOpener?: boolean;
readonly jwtParams?: Auth0ClientOptions;
readonly customState?: TorusGenericObject;
constructor(clientId: string, verifier: string, redirect_uri: string, typeOfLogin: LOGIN_TYPE, uxMode: UX_MODE_TYPE, redirectToOpener?: boolean, jwtParams?: Auth0ClientOptions, customState?: TorusGenericObject);
setFinalUrl(): void;
getUserInfo(params: LoginWindowResponse): Promise<TorusVerifierResponse>;
handleLoginWindow(params: {
locationReplaceOnRedirect?: boolean;
popupFeatures?: string;
}): Promise<LoginWindowResponse>;
}
20 changes: 20 additions & 0 deletions dist/types/handlers/PasswordlessHandler.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { LOGIN_TYPE, UX_MODE_TYPE } from "../utils/enums";
import AbstractLoginHandler from "./AbstractLoginHandler";
import { Auth0ClientOptions, LoginWindowResponse, TorusGenericObject, TorusVerifierResponse } from "./interfaces";
export default class JwtHandler extends AbstractLoginHandler {
readonly clientId: string;
readonly verifier: string;
readonly redirect_uri: string;
readonly typeOfLogin: LOGIN_TYPE;
readonly uxMode: UX_MODE_TYPE;
readonly redirectToOpener?: boolean;
readonly jwtParams?: Auth0ClientOptions;
readonly customState?: TorusGenericObject;
private readonly SCOPE;
private readonly RESPONSE_TYPE;
private readonly PROMPT;
constructor(clientId: string, verifier: string, redirect_uri: string, typeOfLogin: LOGIN_TYPE, uxMode: UX_MODE_TYPE, redirectToOpener?: boolean, jwtParams?: Auth0ClientOptions, customState?: TorusGenericObject);
setFinalUrl(): void;
getUserInfo(params: LoginWindowResponse): Promise<TorusVerifierResponse>;
handleLoginWindow(): Promise<LoginWindowResponse>;
}
18 changes: 18 additions & 0 deletions dist/types/handlers/RedditHandler.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { LOGIN_TYPE, UX_MODE_TYPE } from "../utils/enums";
import AbstractLoginHandler from "./AbstractLoginHandler";
import { Auth0ClientOptions, LoginWindowResponse, TorusGenericObject, TorusVerifierResponse } from "./interfaces";
export default class RedditHandler extends AbstractLoginHandler {
readonly clientId: string;
readonly verifier: string;
readonly redirect_uri: string;
readonly typeOfLogin: LOGIN_TYPE;
readonly uxMode: UX_MODE_TYPE;
readonly redirectToOpener?: boolean;
readonly jwtParams?: Auth0ClientOptions;
readonly customState?: TorusGenericObject;
private readonly RESPONSE_TYPE;
private readonly SCOPE;
constructor(clientId: string, verifier: string, redirect_uri: string, typeOfLogin: LOGIN_TYPE, uxMode: UX_MODE_TYPE, redirectToOpener?: boolean, jwtParams?: Auth0ClientOptions, customState?: TorusGenericObject);
setFinalUrl(): void;
getUserInfo(params: LoginWindowResponse): Promise<TorusVerifierResponse>;
}
18 changes: 18 additions & 0 deletions dist/types/handlers/TwitchHandler.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { LOGIN_TYPE, UX_MODE_TYPE } from "../utils/enums";
import AbstractLoginHandler from "./AbstractLoginHandler";
import { Auth0ClientOptions, LoginWindowResponse, TorusGenericObject, TorusVerifierResponse } from "./interfaces";
export default class TwitchHandler extends AbstractLoginHandler {
readonly clientId: string;
readonly verifier: string;
readonly redirect_uri: string;
readonly typeOfLogin: LOGIN_TYPE;
readonly uxMode: UX_MODE_TYPE;
readonly redirectToOpener?: boolean;
readonly jwtParams?: Auth0ClientOptions;
readonly customState?: TorusGenericObject;
private readonly RESPONSE_TYPE;
private readonly SCOPE;
constructor(clientId: string, verifier: string, redirect_uri: string, typeOfLogin: LOGIN_TYPE, uxMode: UX_MODE_TYPE, redirectToOpener?: boolean, jwtParams?: Auth0ClientOptions, customState?: TorusGenericObject);
setFinalUrl(): void;
getUserInfo(params: LoginWindowResponse): Promise<TorusVerifierResponse>;
}
17 changes: 17 additions & 0 deletions dist/types/handlers/WebAuthnHandler.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { LOGIN_TYPE, UX_MODE_TYPE } from "../utils/enums";
import AbstractLoginHandler from "./AbstractLoginHandler";
import { Auth0ClientOptions, LoginWindowResponse, TorusGenericObject, TorusVerifierResponse } from "./interfaces";
export default class WebAuthnHandler extends AbstractLoginHandler {
readonly clientId: string;
readonly verifier: string;
readonly redirect_uri: string;
readonly typeOfLogin: LOGIN_TYPE;
readonly uxMode: UX_MODE_TYPE;
readonly redirectToOpener?: boolean;
readonly jwtParams?: Auth0ClientOptions;
readonly customState?: TorusGenericObject;
readonly registerOnly?: boolean;
constructor(clientId: string, verifier: string, redirect_uri: string, typeOfLogin: LOGIN_TYPE, uxMode: UX_MODE_TYPE, redirectToOpener?: boolean, jwtParams?: Auth0ClientOptions, customState?: TorusGenericObject, registerOnly?: boolean);
setFinalUrl(): void;
getUserInfo(parameters: LoginWindowResponse): Promise<TorusVerifierResponse>;
}
Loading

0 comments on commit 92bb7ea

Please sign in to comment.