Merge pull request 'console.log' (#65) from statistics into master

Reviewed-on: http://git.plannaplan.pl/y0rune/frontend/pulls/65
This commit is contained in:
Marcin Woźniak 2021-01-25 18:52:45 +01:00
commit c83f839705

View File

@ -9,7 +9,6 @@ export const getNewTokens = async () => {
const { data } = await axiosInstance.get( const { data } = await axiosInstance.get(
`${process.env.REACT_APP_API_URL}/token/refresh?refreshToken=${refreshToken}`, `${process.env.REACT_APP_API_URL}/token/refresh?refreshToken=${refreshToken}`,
); );
console.log("12312321",data);
localStorage.setItem('userPrivilige',data.authorityRole); localStorage.setItem('userPrivilige',data.authorityRole);
localStorage.setItem('userToken', data.token); localStorage.setItem('userToken', data.token);
localStorage.setItem('refreshToken', data.refreshToken); localStorage.setItem('refreshToken', data.refreshToken);