mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 23:43:22 +00:00
chore: WIP uilisant d'un CSRF global à l'appli
This commit is contained in:
@ -13,6 +13,7 @@ export const BE_AUTH_LOGIN_URL = `${BASE_URL}/Auth/login`
|
||||
export const BE_AUTH_LOGOUT_URL = `${BASE_URL}/Auth/logout`
|
||||
export const BE_AUTH_PROFILES_URL = `${BASE_URL}/Auth/profiles`
|
||||
export const BE_AUTH_CSRF_URL = `${BASE_URL}/Auth/csrf`
|
||||
export const BE_AUTH_INFO_SESSION = `${BASE_URL}/Auth/infoSession`
|
||||
|
||||
// GESTION INSCRIPTION
|
||||
export const BE_SUBSCRIPTION_STUDENTS_URL = `${BASE_URL}/Subscriptions/students` // Récupère la liste des élèves inscrits ou en cours d'inscriptions
|
||||
|
||||
9
Front-End/src/utils/getCsrfToken.js
Normal file
9
Front-End/src/utils/getCsrfToken.js
Normal file
@ -0,0 +1,9 @@
|
||||
let csrfToken = '';
|
||||
|
||||
export const setCsrfToken = (token) => {
|
||||
csrfToken = token;
|
||||
};
|
||||
|
||||
export const getCsrfToken = () => {
|
||||
return csrfToken;
|
||||
};
|
||||
Reference in New Issue
Block a user