Remove signInAnonymously
from authenticated API routes
#187
Labels
simple
Won't take too much effort to fix!
signInAnonymously
from authenticated API routes
#187
For some reason
signInAnonymously
needs to be called before each authenticated API route. We should find some way to eliminate this stepMotivation
Anonymous sign in causes a bunch of anonymous users in the user list. Also a ding on performance.
Problem
The server/backend doesnt know about authentication state on the client side, probably because API routes are built before the active session is retrieved. I can pass in the 'auth' object from middleware, but 'auth' object still won't be passed along to the firebase req (ie. update)
Approaches
The text was updated successfully, but these errors were encountered: