Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GSC React Auth
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GSC Libraries
GSC React Auth
Commits
d2986a8f
Commit
d2986a8f
authored
1 month ago
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update index.js
parent
c0212247
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/index.js
src/index.js
+1
-1
No files found.
src/index.js
View file @
d2986a8f
...
...
@@ -53,7 +53,7 @@ const initGSCAuth = (applicationId, redirectUri, scopes, cacheLocation) => {
return
{
GSCAuthProvider
,
GSCAuthConsumer
};
};
const
setupGSCAuth
=
(
aadAppId
,
authRedirectUri
,
msGraphScopes
=
[
"
User.Read
"
],
cacheLocation
=
"
session
Storage
"
)
=>
{
const
setupGSCAuth
=
(
aadAppId
,
authRedirectUri
,
msGraphScopes
=
[
"
User.Read
"
],
cacheLocation
=
"
local
Storage
"
)
=>
{
const
{
GSCAuthProvider
,
GSCAuthConsumer
}
=
initGSCAuth
(
aadAppId
,
authRedirectUri
,
msGraphScopes
,
cacheLocation
);
const
initialAuthValues
=
getAuthValues
();
const
clearGSCAuth
=
()
=>
authentication
.
signOut
();
...
...
This diff is collapsed.
Click to expand it.
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