Skip to content

Commit 4f5aa90

Browse files
author
Guru
committed
fix: types and bot id
1 parent 1c943ec commit 4f5aa90

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

examples/nextjs-app/lib/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ export const verifierMap = {
5454
[TELEGRAM]: {
5555
name: "Telegram",
5656
typeOfLogin: "telegram",
57-
clientId: "7974448012",
58-
verifier: "test-telegram-2",
57+
clientId: "7696397063",
58+
verifier: "test-telegram-4",
5959
},
6060
[EMAIL_PASSWORD]: {
6161
name: "Email Password",

examples/nextjs-app/pages/auth.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* User will be redirected to this page in redirect uxMode
33
*/
44
import React from "react";
5-
import { CustomAuth } from "@toruslabs/customauth";
5+
import { CustomAuth, RedirectResult } from "@toruslabs/customauth";
66
import dynamic from "next/dynamic";
77

88
let ReactJsonView;
@@ -11,7 +11,7 @@ if (typeof window === "object") {
1111
}
1212

1313
interface IState {
14-
loginDetails?: any | null;
14+
loginDetails?: RedirectResult | null;
1515
}
1616

1717
interface IProps {}

examples/nextjs-app/pages/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable class-methods-use-this */
22
import React from "react";
33
import Link from "next/link";
4-
import { CustomAuth } from "@toruslabs/customauth";
4+
import { CustomAuth, TorusLoginResponse } from "@toruslabs/customauth";
55
import dynamic from "next/dynamic";
66

77
import {
@@ -27,9 +27,9 @@ if (typeof window === "object") {
2727

2828
interface IState {
2929
selectedVerifier: string;
30-
torusdirectsdk: any | null;
30+
torusdirectsdk: CustomAuth | null;
3131
loginHint: string;
32-
loginResponse?: any | null;
32+
loginResponse?: TorusLoginResponse | null;
3333
}
3434

3535
interface IProps {}

examples/nextjs-app/pages/popupMode/login.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { CustomAuth } from "@toruslabs/customauth";
2+
import { CustomAuth, TorusLoginResponse} from "@toruslabs/customauth";
33
import dynamic from "next/dynamic";
44
import {
55
verifierMap,
@@ -27,9 +27,9 @@ if (typeof window === "object") {
2727

2828
interface IState {
2929
selectedVerifier: string;
30-
torusdirectsdk: any | null;
30+
torusdirectsdk: CustomAuth | null;
3131
loginHint: string;
32-
loginDetails?: any | null;
32+
loginDetails?: TorusLoginResponse | null;
3333
}
3434

3535
interface IProps {}

examples/nextjs-app/pages/redirectMode/login.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222

2323
interface IState {
2424
selectedVerifier: string;
25-
torusdirectsdk: any | null;
25+
torusdirectsdk: CustomAuth | null;
2626
loginHint: string;
2727
consoleText?: string;
2828
}

0 commit comments

Comments
 (0)