How do you send an authenticated request?
I'm either blind or confused, from the docs I can't find anything on how to send a request to a backend (ExpressJS) in this case for a simple protected route.
I can login/logout, but if I attached the token in a header "Authorization" :
Bearer ${token} and my middleware looks like the following
I get a 401, what am I missing? FYI this is for the email + password plugin only.
--- Edit
I should add my frontend app is Nextjs with axios,
Here's how my axios is setup
1 Reply
Got it to work, I just realized it's cookies not bearer tokens for auth. Would love a simple example, I always find your docs neat but confusing. Especially the flipping between baclend and frontend clients.