update vk auth
This commit is contained in:
@@ -5,14 +5,14 @@ import { createSession } from '@/app/actions/session';
|
||||
import { redirect } from 'next/navigation';
|
||||
|
||||
|
||||
export async function vkAuthorization(data : any, codeChallenge: string) {
|
||||
export async function vkAuthorization(data : any, codeVerifier: string) {
|
||||
|
||||
console.log(data);
|
||||
console.log(codeChallenge);
|
||||
console.log(codeVerifier);
|
||||
const { code, state, device_id } = data
|
||||
|
||||
try {
|
||||
const response = await fetch(`${API_BASE_URL}/api/v1/vk/authorization/${code}/${state}/${codeChallenge}/${device_id}`, {
|
||||
const response = await fetch(`${API_BASE_URL}/api/v1/vk/authorization/${code}/${state}/${codeVerifier}/${device_id}`, {
|
||||
method: 'GET',
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
|
||||
Reference in New Issue
Block a user