Putzing around with using nextjs-auth0 SDK with Sapper. Here’s my repo, authentication branch:
Had to switch server to Express and pass headers through Sapper’s session argument in preload. API routes had to change to Sapper’s exporting format but otherwise the same code.
Running into some functionality where you can hit the back button after logging out and seeing the admin page. I think it’s a version served up by the service workers. Basically it’s not perfect yet but potential?