Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WebFront
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
websystem
WebFront
Commits
10c5b0d8
Commit
10c5b0d8
authored
7 months ago
by
석찬 윤
Browse files
Options
Downloads
Patches
Plain Diff
feat: 로그인 로직 fcm 토큰 포함하게 수정 (
#14
)
parent
1ddbdf2a
Branches
Branches containing commit
No related tags found
2 merge requests
!26
[#14] FCM 토큰 포함 로그인 로직 수정
,
!25
[#14] FCM 토큰 포함 로그인 로직 수정
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/api/auth.js
+10
-1
10 additions, 1 deletion
src/api/auth.js
with
10 additions
and
1 deletion
src/api/auth.js
+
10
−
1
View file @
10c5b0d8
...
@@ -5,7 +5,16 @@
...
@@ -5,7 +5,16 @@
* @returns {string} 로그인 엔드포인트 URL
* @returns {string} 로그인 엔드포인트 URL
*/
*/
export
const
getLoginUrl
=
()
=>
{
export
const
getLoginUrl
=
()
=>
{
return
`
${
process
.
env
.
REACT_APP_BASE_URL
}
/api/auth/login`
;
const
baseUrl
=
process
.
env
.
REACT_APP_BASE_URL
;
const
fcmToken
=
localStorage
.
getItem
(
"
fcmToken
"
);
// fcmToken이 있을 경우 파라미터에 추가
const
params
=
new
URLSearchParams
();
if
(
fcmToken
)
{
params
.
append
(
"
fcmToken
"
,
fcmToken
);
}
return
`
${
baseUrl
}
/api/auth/login?
${
params
.
toString
()}
`
;
};
};
/**
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment