@@ -51,7 +51,7 @@ export const useAuthStore = defineStore("auth", {
5151 throw new Error ( "сode verifier not found" )
5252 }
5353
54- const response = await fetch ( `${ Auth . baseUrl } ${ Auth . getTokenUrl } ` , {
54+ const response = await fetch ( `https://auth-back.celenium.io ${ Auth . getTokenUrl } ` , {
5555 method : "POST" ,
5656 headers : {
5757 "Content-Type" : "application/x-www-form-urlencoded" ,
@@ -88,7 +88,7 @@ export const useAuthStore = defineStore("auth", {
8888 throw new Error ( "No access token" )
8989 }
9090
91- const response = await fetch ( `${ Auth . baseUrl } ${ Auth . getCurrentUserUrl } ` , {
91+ const response = await fetch ( `$https://auth-back.celenium.io ${ Auth . getCurrentUserUrl } ` , {
9292 headers : {
9393 "Authorization" : `Bearer ${ token } ` ,
9494 } ,
@@ -119,7 +119,7 @@ export const useAuthStore = defineStore("auth", {
119119
120120 async refreshToken ( refreshToken ) {
121121 try {
122- const response = await fetch ( `${ Auth . baseUrl } ${ Auth . getTokenUrl } ` , {
122+ const response = await fetch ( `https://auth-back.celenium.io ${ Auth . getTokenUrl } ` , {
123123 method : "POST" ,
124124 headers : {
125125 "Content-Type" : "application/x-www-form-urlencoded" ,
@@ -149,7 +149,7 @@ export const useAuthStore = defineStore("auth", {
149149 async revokeToken ( ) {
150150 try {
151151 const refreshToken = localStorage . getItem ( "refresh_token" )
152- const response = await fetch ( `${ Auth . baseUrl } ${ Auth . revokeTokenUrl } ` , {
152+ const response = await fetch ( `https://auth-back.celenium.io ${ Auth . revokeTokenUrl } ` , {
153153 method : "POST" ,
154154 headers : {
155155 "Content-Type" : "application/x-www-form-urlencoded" ,
@@ -176,7 +176,7 @@ export const useAuthStore = defineStore("auth", {
176176 throw new Error ( "No access token" )
177177 }
178178
179- const response = await fetch ( `${ Auth . baseUrl } ${ Auth . saveSettingsUrl } ` , {
179+ const response = await fetch ( `https://auth-back.celenium.io ${ Auth . saveSettingsUrl } ` , {
180180 method : "POST" ,
181181 headers : {
182182 "Accept" : "application/json" ,
0 commit comments