Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F5811230
oauth_tokens.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
637 B
Referenced Files
None
Subscribers
None
oauth_tokens.js
View Options
const
oauthTokens
=
{
state
:
{
tokens
:
[]
},
actions
:
{
fetchTokens
({
rootState
,
commit
})
{
rootState
.
api
.
backendInteractor
.
fetchOAuthTokens
().
then
((
tokens
)
=>
{
commit
(
'swapTokens'
,
tokens
)
})
},
revokeToken
({
rootState
,
commit
,
state
},
id
)
{
rootState
.
api
.
backendInteractor
.
revokeOAuthToken
({
id
}).
then
((
response
)
=>
{
if
(
response
.
status
===
201
)
{
commit
(
'swapTokens'
,
state
.
tokens
.
filter
(
token
=>
token
.
id
!==
id
))
}
})
}
},
mutations
:
{
swapTokens
(
state
,
tokens
)
{
state
.
tokens
=
tokens
}
}
}
export
default
oauthTokens
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 14, 3:29 AM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
298662
Default Alt Text
oauth_tokens.js (637 B)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment