Skip to content
Snippets Groups Projects
Commit 6d3bf7eb authored by lfr20's avatar lfr20
Browse files

Function to save tokens from response

parent f8990a52
No related branches found
No related tags found
6 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!39Update admin system,!32Homologa,!31Fix console error,!28Training materials
export const saveHeaders = (response) => {
if (response.headers['access-token'])
sessionStorage.setItem('@portalmec/accessToken', response.headers['access-token'])
if (response.headers.client)
sessionStorage.setItem('@portalmec/clientToken', response.headers.client)
}
\ No newline at end of file
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