Skip to content

Commit

Permalink
Merge pull request #53 from prgrms-web-devcourse-final-project/featur…
Browse files Browse the repository at this point in the history
…e/mypage

Feat: role 추가
  • Loading branch information
OpenS3same authored Dec 9, 2024
2 parents 55850a1 + 82bf3f8 commit e53ce7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/loginApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ export const postSignIn = async (body: { email: string; password: string }) => {

const token =
response.headers['authorization'] || response.headers['Authorization'];
const role = response.data.roles;
if (token) {
localStorage.setItem('token', token);
localStorage.setItem('role', role);
}
return response;
};
Expand Down

0 comments on commit e53ce7a

Please sign in to comment.