I’m looking to implement a NuxtJS front end with an express backend server. I will be hooking the express api server up to CouchDB via PouchDB for data etc.
I’m confused about how to setup authentication. Obviously I can just use the Auth0 to authenticate a user when they are online, but what happens when they are offline? I would have thought the user records would have to be in the local DB for the Auth0 callback to check they exist etc in order to authenticate.
How should I be structuring this so that the user can sign in regardless of connection state?