Skip to content

Commit 58a9321

Browse files
committed
enables social login
1 parent 8fece1e commit 58a9321

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"dependencies": {
3434
"@chaitanyapotti/register-service-worker": "^1.7.4",
3535
"@toruslabs/broadcast-channel": "^11.0.0",
36-
"@toruslabs/constants": "^14.0.0",
36+
"@toruslabs/constants": "^14.2.0",
3737
"@toruslabs/eccrypto": "^5.0.4",
3838
"@toruslabs/fetch-node-details": "^14.0.1",
3939
"@toruslabs/http-helpers": "^7.0.0",

src/handlers/AbstractLoginHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import base64url from "base64url";
33
import { UX_MODE } from "../utils/enums";
44
import { broadcastChannelOptions, getTimeout, randomId } from "../utils/helpers";
55
import log from "../utils/loglevel";
6-
import PopupHandler from "../utils/PopupHandler";
6+
import { PopupHandler } from "../utils/PopupHandler";
77
import { CreateHandlerParams, ILoginHandler, LoginWindowResponse, PopupResponse, TorusVerifierResponse } from "./interfaces";
88

99
abstract class AbstractLoginHandler implements ILoginHandler {

src/handlers/MockLoginHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import log from "loglevel";
44

55
import { UX_MODE } from "../utils/enums";
66
import { constructURL, decodeToken, getVerifierId, padUrlString } from "../utils/helpers";
7-
import PopupHandler from "../utils/PopupHandler";
7+
import { PopupHandler } from "../utils/PopupHandler";
88
import AbstractLoginHandler from "./AbstractLoginHandler";
99
import { Auth0UserInfo, CreateHandlerParams, LoginWindowResponse, TorusVerifierResponse } from "./interfaces";
1010

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ export { default as CustomAuth } from "./login";
44
export * from "./utils/enums";
55
export * from "./utils/error";
66
export * from "./utils/helpers";
7+
export * from "./utils/PopupHandler";

src/utils/PopupHandler.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type PopupHandlerEvents = {
77
close: () => void;
88
};
99

10-
class PopupHandler extends (EventEmitter as new () => TypedEmitter<PopupHandlerEvents>) {
10+
export class PopupHandler extends (EventEmitter as new () => TypedEmitter<PopupHandlerEvents>) {
1111
url: URL;
1212

1313
target: string;
@@ -73,5 +73,3 @@ class PopupHandler extends (EventEmitter as new () => TypedEmitter<PopupHandlerE
7373
}
7474
}
7575
}
76-
77-
export default PopupHandler;

0 commit comments

Comments
 (0)