Skip to content

Commit

Permalink
No automatic refresh with SWR
Browse files Browse the repository at this point in the history
  • Loading branch information
soerface committed Nov 13, 2024
1 parent 7dbbecf commit 563a96e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/AuthenticatedSWRConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ function AuthenticatedSWRConfig({children}: PropsWithChildren) {

return <SWRConfig
value={{
refreshInterval: 3000,
fetcher: async (resource, init) => {
if (!auth.user) {
throw new Error("Not authenticated");
Expand Down
1 change: 0 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const oidcConfig = {
post_logout_redirect_uri: window.location.origin + "/login/callback",
response_type: "code",
userStore: new WebStorageStateStore({store: window.localStorage}),
scope: "openid profile offline_access",
} satisfies AuthProviderProps;

createRoot(document.getElementById('root')!).render(
Expand Down

0 comments on commit 563a96e

Please sign in to comment.