Skip to content
Snippets Groups Projects

Fix/authorization

Merged Defendi Alberto requested to merge fix/authorization into dev
5 files
+ 10
4
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 2
1
import axios from 'axios';
/**
* @async
* Call for csrf cookie. This cookie is the user session identifier and
* must be sent during the login process.
* @returns csrf cookie
* @returns {string} csrf cookie
*/
export const fetchCookie = async (): Promise<string> =>
axios('/api/web/csrf').then((res) => res.data.token);
Loading