Toggle navigation
Toggle navigation
This project
Loading...
Sign in
정민우
/
vps_service
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
ch4n3.yoon
2021-05-14 17:06:23 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e364827ae265110084b8ccec20961f2bc636faeb
e364827a
1 parent
359a2491
[Edit] token값 localStorage에 적용
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
frontend/src/components/SignIn.js
frontend/src/components/SignIn.js
View file @
e364827
...
...
@@ -56,9 +56,10 @@ const SignIn = () => {
const
signIn
=
()
=>
{
http
.
post
(
'/login'
).
then
(
response
=>
{
const
{
success
,
code
,
data
,
message
}
=
response
.
data
const
{
success
,
access_token
}
=
response
.
data
if
(
success
)
{
localStorage
.
setItem
(
'token'
,
access_token
)
setSuccess
(
true
)
}
})
}
...
...
Please
register
or
login
to post a comment