I have started from a generated server and tried following the authentication instructions.
But whenever I try to access an authenticated a route, I see this error:
Unhandled error in GET /whoami: 500 Error: The key authentication.currentUser was not bound to any value.
Where is the CURRENT_USER provider supposed to get added to the registry? ☑️ Answered below.
Is there an example server with working authentication anywhere? ☑️ Got one below. Thanks virkt25!
Another thing to note is that the verify() function in MyAuthStrategyProvider never gets called. Although it does get called in virkt25's example, so I need to work out what the difference is between our projects.