- aggiornamento refreshtoken (parte 1)

- PCB: fix listino
This commit is contained in:
Surya Paolo
2024-04-09 21:57:04 +02:00
parent ae08bc9ad6
commit 62c0f497e5
84 changed files with 317 additions and 301 deletions

View File

@@ -28,6 +28,7 @@ export const serv_constants = {
RIS_CODE_LOGIN_OK: 1,
RIS_ISCRIZIONE_OK: 5,
RIS_CODE__HTTP_FORBIDDEN_INVALID_TOKEN: 403,
RIS_CODE__HTTP_FORBIDDEN_TOKEN_EXPIRED: 408,
RIS_CODE_TOKEN_RESETPASSWORD_NOT_FOUND: -23,

View File

@@ -4396,7 +4396,7 @@ export const tools = {
},
getheaders() {
const userStore = useUserStore()
return [{ name: 'x-auth', value: userStore.x_auth_token }]
return [{ name: 'x-auth', value: userStore.x_auth_token }, { name: 'x-refrTok', value: userStore.refreshToken }]
},
getextfile(filename: string) {
@@ -8510,8 +8510,12 @@ export const tools = {
},
getInvitante() {
const invitante = tools.getCookie(tools.APORTADOR_SOLIDARIO)
return invitante ? invitante : ''
try {
const invitante = tools.getCookie(tools.APORTADOR_SOLIDARIO, '')
return invitante ? invitante : ''
} catch (e) {
return ''
}
},
contieneSlash(str: string) {

View File

@@ -117,6 +117,7 @@ export const toolsext = {
leftDrawerOpen: 'ldo',
userId: 'uid',
token: 'tk',
refreshToken: 'rt',
username: 'uname',
name: 'nm',
surname: 'sn',