Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
astro-redux
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
06c2a1e8
authored
2024-05-03 16:31:24 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
getToken() now works.
1 parent
27cbbbf8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/slices.mjs
src/slices.mjs
View file @
06c2a1e
...
...
@@ -21,10 +21,10 @@ export const loginApiSlice = createApi({
endpoints: builder => ({
getToken: builder.query({
query: () => ({
url: '/token
?
refresh',
url: '/token
/
refresh',
method: 'GET',
}),
providesTags(result, error, arg) {
providesTags(result
= {}
, error, arg) {
const { expires_at, access_token } = result
return ['Token']
},
...
...
Please
register
or
sign in
to post a comment