Commit 974326e
authored
fix(next-auth): allow users to use the application offline (#115)
**Why:**
When a user is offline and runs an application, he will always be unauthorized. For my app, I temporarily changed the cache config and now suggesting the same changes.
**What changed:**
- Update the list of URLs excluded from caching by making it more specific: `/api/auth/` => `/api/auth/callback/`.
- Google Auth is tested in _Chrome 119 arm64 for macOS_, _Safari 17.0 for macOS_ ans _Safari for iOS 17.1.1_.
- Opening pages offline works fine, tested in the same browsers.
- Tested logging out when the user is online and the token is not valid.1 parent d074711 commit 974326e
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
0 commit comments