fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
const API_URL = process.env.KOTOSOFT_ID_API_URL!;
|
const API_URL = process.env.KOTOSOFT_ID_API_URL!;
|
||||||
const CLIENT_ID = process.env.KOTOSOFT_ID_CLIENT_ID!;
|
const CLIENT_ID = process.env.KOTOSOFT_CLIENT_ID!;
|
||||||
const CLIENT_SECRET = process.env.KOTOSOFT_ID_CLIENT_SECRET!;
|
const CLIENT_SECRET = process.env.KOTOSOFT_CLIENT_SECRET!;
|
||||||
|
|
||||||
export async function exchangeCode(code: string, codeVerifier: string) {
|
export async function exchangeCode(code: string, codeVerifier: string) {
|
||||||
const body = new URLSearchParams({
|
const body = new URLSearchParams({
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ export async function login() {
|
|||||||
store.set("oauth_state", state, pkceConfig);
|
store.set("oauth_state", state, pkceConfig);
|
||||||
|
|
||||||
const params = new URLSearchParams({
|
const params = new URLSearchParams({
|
||||||
client_id: process.env.KOTOSOFT_ID_CLIENT_ID!,
|
client_id: process.env.KOTOSOFT_CLIENT_ID!,
|
||||||
redirect_uri: `${process.env.PUBLIC_URL}/api/callback`,
|
redirect_uri: `${process.env.PUBLIC_URL}/api/callback`,
|
||||||
scope: "profile:read",
|
scope: "profile:read",
|
||||||
response_type: "code",
|
response_type: "code",
|
||||||
|
|||||||
Reference in New Issue
Block a user