FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
tinyhub/docs/auth.html at main · tinyplex/tinyhub · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
tinyplex
/
tinyhub
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
6
Star
103
Code
Issues
0
Pull requests
1
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
tinyhub
/
docs
/
auth.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
1 lines (1 loc) · 445 Bytes
Breadcrumbs
tinyhub
/
docs
/
auth.html
Copy path
File metadata and controls
1 lines (1 loc) · 445 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
<
script
>
const
e
=
location
,
t
=
localStorage
,
o
=
sessionStorage
,
a
=
"token"
,
s
=
"state"
,
r
=
e
=>
new
URLSearchParams
(
e
)
,
n
=
r
(
e
.
search
)
;
let
i
=
e
.
origin
;
if
(
n
.
has
(
"logout"
)
)
t
.
removeItem
(
a
)
;
else
if
(
n
.
has
(
a
)
)
n
.
get
(
s
)
===
o
.
getItem
(
s
)
&&
(
t
.
setItem
(
a
,
n
.
get
(
a
)
)
,
o
.
removeItem
(
s
)
)
;
else
{
const
n
=
Math
.
random
(
)
.
toString
(
)
;
o
.
setItem
(
s
,
n
)
,
t
.
removeItem
(
a
)
,
i
=
"https://api.tinyhub.org?"
+
r
(
{
client
:
e
.
origin
+
e
.
pathname
,
step
:
0
,
state
:
n
,
scope
:
"read:org"
}
)
.
toString
(
)
}
e
.
replace
(
i
)
</
script
>
Back
|
FazBrowse Home
|
New Git URL