changed google-auth strategy and removed session use

This commit is contained in:
Sheen Capadngan
2023-05-11 00:37:02 +08:00
parent 074c0bdd77
commit addc849fa6
11 changed files with 75 additions and 238 deletions
+2 -1
View File
@@ -12,8 +12,9 @@ interface Login1 {
const login1 = async (loginDetails: {
email: string;
clientPublicKey: string;
providerAuthToken?: string;
}) => {
const response = await fetch("/api/v2/auth/login1", {
const response = await fetch("/api/v3/auth/login1", {
method: "POST",
headers: {
"Content-Type": "application/json",
+2 -1
View File
@@ -20,8 +20,9 @@ interface Login2Response {
const login2 = async (loginDetails: {
email: string;
clientProof: string;
providerAuthToken?: string;
}) => {
const response = await fetch('/api/v2/auth/login2', {
const response = await fetch('/api/v3/auth/login2', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
+1
View File
@@ -63,6 +63,7 @@ export default function Login() {
<PasswordInputStep
email={providerEmail}
password={password}
providerAuthToken={providerAuthToken}
setPassword={setPassword}
setProviderAuthToken={setProviderAuthToken}
setStep={setStep}