1
0
Fork 0
forked from OpenNeo/impress
impress/src/app
Matchu db8fe9f3c2 Logout button for new auth mode
Hey hey, logging out works! The server side of this was easy, but I made a few refactors to support it well on the client, like `useLoginActions` becoming just `useLogout` lol, and updating how the nav menu chooses between buttons vs menu because I wanted `<LogoutButton />` to contain some state.

We also did good Apollo cache stuff to update the page after you log in or out! I think some fields that don't derive from `User`, like `Item.currentUserOwnsThis`, are gonna fail to update until you reload the page but like that's fine idk :p

There's a known bug where logging out on the Your Outfits page turns into an infinite loop situation, because it's trying to do Auth0 stuff but the login keeps failing to have any effect because we're in db mode! I'll fix that next.
2022-08-17 16:05:36 -07:00
..
cached-data Build cached zones, stop querying on server 2020-08-19 17:50:05 -07:00
components Logout button for new auth mode 2022-08-17 16:05:36 -07:00
images [WIP] Fix app images in Next.js 2021-11-02 00:50:39 -07:00
ItemPage [WIP] Add lint exceptions for <img> tags 2021-11-02 00:55:21 -07:00
WardrobePage Add Delete button for outfits 2022-08-15 20:23:17 -07:00
apolloClient.js Support actual login via db?? :0 2022-08-17 15:24:17 -07:00
App.js Filter out browser extensions from error logging 2022-08-15 18:12:19 -07:00
ConversionPage.js Only wait for auth on queries that need it 2021-01-21 14:57:21 -08:00
GlobalFooter.js Rename UserItemsPage 2021-06-19 09:24:05 -07:00
GlobalHeader.js Logout button for new auth mode 2022-08-17 16:05:36 -07:00
HomePage.js Merge branch 'main' into ansible 2021-11-16 11:23:01 -08:00
InternalAssetImagePage.js Use /api/assetImage for all image sizes 2021-08-19 17:56:09 -07:00
ItemPage.js Finish wiring up ~owls data 2022-08-15 23:57:33 -07:00
ItemPageDrawer.js update chakra imports 2020-12-25 09:08:33 -08:00
ItemPageLayout.js Release the ~owls pricing! 2022-08-16 13:51:34 -07:00
ItemSearchPage.js Add search toolbar to item page 2021-09-30 20:04:50 -07:00
ItemTradesPage.js Finish wiring up ~owls data 2022-08-15 23:57:33 -07:00
ModelingPage.js [WIP] Fix eslint for Next.js 2021-11-01 22:07:46 -07:00
PageLayout.js Add general error message for wardrobe crashes 2021-05-05 00:22:28 -07:00
PrivacyPolicyPage.js Privacy policy copy tweak 2021-01-18 06:44:07 -08:00
SupportPetAppearancesPage.js Sort /support/petAppearances from newest to oldest 2021-10-01 04:22:53 -07:00
UserItemListPage.js [WIP] Fix eslint for Next.js 2021-11-01 22:07:46 -07:00
UserItemListsIndexPage.js Fix email search redirect 2021-10-21 11:56:55 -07:00
UserOutfitsPage.js Preload next/prev user outfits page 2021-11-01 19:50:21 -07:00
util.js Add Delete button for outfits 2022-08-15 20:23:17 -07:00