Skip to content
Snippets Groups Projects
Verified Commit 482ad896 authored by Defendi Alberto's avatar Defendi Alberto
Browse files

Correct doc.

parent ea018c56
No related branches found
No related tags found
2 merge requests!56Refined auth flow and new website pages.,!45Polished auth flow including ReservedRoute and role selection.
This commit is part of merge request !45. Comments created here will be created in the context of that merge request.
import axios from 'axios'; import axios from 'axios';
/** /**
* Ask the server all the roles of an user (if the user has multiple roles). * Set the role of the user in the database.
* @returns array of roles.
*/ */
export const setRole = async (role: string): Promise<void> => export const setRole = async (role: string): Promise<void> =>
axios.post('/api/web/login/set_role', { role }); axios.post('/api/web/login/set_role', { role });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment