Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
travel
Commits
da88857d
Commit
da88857d
authored
Jul 26, 2022
by
Yoon, Daeki
😅
Browse files
로그인 할 때 로컬저장소에 역할 추가
parent
1574f869
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/auth/auth.helper.ts
View file @
da88857d
...
@@ -18,6 +18,7 @@ export const handleLogin = async (email: string, password: string) => {
...
@@ -18,6 +18,7 @@ export const handleLogin = async (email: string, password: string) => {
LOCAL_USER_INFO
,
LOCAL_USER_INFO
,
JSON
.
stringify
({
JSON
.
stringify
({
isLoggedIn
:
user
.
isLoggedIn
,
isLoggedIn
:
user
.
isLoggedIn
,
role
:
user
.
role
,
})
})
);
);
return
user
;
return
user
;
...
@@ -58,4 +59,3 @@ export const getLocalUser = () => {
...
@@ -58,4 +59,3 @@ export const getLocalUser = () => {
}
}
return
user
;
return
user
;
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment