Skip to content

Commit 92bb7ea

Browse files
committed
kukai changes
1 parent 6749a2b commit 92bb7ea

30 files changed

+21883
-16
lines changed

dist/customauth.cjs.js

Lines changed: 2268 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/customauth.cjs.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/customauth.esm.js

Lines changed: 2120 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/customauth.esm.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/customauth.umd.min.js

Lines changed: 16595 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*!
2+
* The buffer module from node.js, for the browser.
3+
*
4+
* @author Feross Aboukhadijeh <https://feross.org>
5+
* @license MIT
6+
*/
7+
8+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
9+
10+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

dist/customauth.umd.min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { LOGIN_TYPE, UX_MODE_TYPE } from "../utils/enums";
2+
import { Auth0ClientOptions, ILoginHandler, LoginWindowResponse, TorusGenericObject, TorusVerifierResponse } from "./interfaces";
3+
declare abstract class AbstractLoginHandler implements ILoginHandler {
4+
readonly clientId: string;
5+
readonly verifier: string;
6+
readonly redirect_uri: string;
7+
readonly typeOfLogin: LOGIN_TYPE;
8+
readonly uxMode: UX_MODE_TYPE;
9+
readonly redirectToOpener?: boolean;
10+
readonly jwtParams?: Auth0ClientOptions;
11+
readonly customState?: TorusGenericObject;
12+
nonce: string;
13+
finalURL: URL;
14+
constructor(clientId: string, verifier: string, redirect_uri: string, typeOfLogin: LOGIN_TYPE, uxMode: UX_MODE_TYPE, redirectToOpener?: boolean, jwtParams?: Auth0ClientOptions, customState?: TorusGenericObject);
15+
get state(): string;
16+
handleLoginWindow(params: {
17+
locationReplaceOnRedirect?: boolean;
18+
popupFeatures?: string;
19+
}): Promise<LoginWindowResponse>;
20+
abstract getUserInfo(params: LoginWindowResponse): Promise<TorusVerifierResponse>;
21+
abstract setFinalUrl(): void;
22+
}
23+
export default AbstractLoginHandler;
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { LOGIN_TYPE, UX_MODE_TYPE } from "../utils/enums";
2+
import AbstractLoginHandler from "./AbstractLoginHandler";
3+
import { Auth0ClientOptions, LoginWindowResponse, TorusGenericObject, TorusVerifierResponse } from "./interfaces";
4+
export default class DiscordHandler extends AbstractLoginHandler {
5+
readonly clientId: string;
6+
readonly verifier: string;
7+
readonly redirect_uri: string;
8+
readonly typeOfLogin: LOGIN_TYPE;
9+
readonly uxMode: UX_MODE_TYPE;
10+
readonly redirectToOpener?: boolean;
11+
readonly jwtParams?: Auth0ClientOptions;
12+
readonly customState?: TorusGenericObject;
13+
private readonly RESPONSE_TYPE;
14+
private readonly SCOPE;
15+
constructor(clientId: string, verifier: string, redirect_uri: string, typeOfLogin: LOGIN_TYPE, uxMode: UX_MODE_TYPE, redirectToOpener?: boolean, jwtParams?: Auth0ClientOptions, customState?: TorusGenericObject);
16+
setFinalUrl(): void;
17+
getUserInfo(params: LoginWindowResponse): Promise<TorusVerifierResponse>;
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { LOGIN_TYPE, UX_MODE_TYPE } from "../utils/enums";
2+
import AbstractLoginHandler from "./AbstractLoginHandler";
3+
import { Auth0ClientOptions, LoginWindowResponse, TorusGenericObject, TorusVerifierResponse } from "./interfaces";
4+
export default class FacebookHandler extends AbstractLoginHandler {
5+
readonly clientId: string;
6+
readonly verifier: string;
7+
readonly redirect_uri: string;
8+
readonly typeOfLogin: LOGIN_TYPE;
9+
readonly uxMode: UX_MODE_TYPE;
10+
readonly redirectToOpener?: boolean;
11+
readonly jwtParams?: Auth0ClientOptions;
12+
readonly customState?: TorusGenericObject;
13+
private readonly RESPONSE_TYPE;
14+
private readonly SCOPE;
15+
constructor(clientId: string, verifier: string, redirect_uri: string, typeOfLogin: LOGIN_TYPE, uxMode: UX_MODE_TYPE, redirectToOpener?: boolean, jwtParams?: Auth0ClientOptions, customState?: TorusGenericObject);
16+
setFinalUrl(): void;
17+
getUserInfo(params: LoginWindowResponse): Promise<TorusVerifierResponse>;
18+
}

0 commit comments

Comments
 (0)