update vkAuth endpoint
This commit is contained in:
@@ -9,10 +9,10 @@ export async function vkAuthorization(data : any, codeVerifier: string) {
|
||||
|
||||
console.log(data);
|
||||
console.log(codeVerifier);
|
||||
const { code, state } = data
|
||||
const { code, state, device_id } = data
|
||||
|
||||
try {
|
||||
const response = await fetch(`${API_BASE_URL}/api/v1/vk/authorization/${code}/${state}`, {
|
||||
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