Api request failed 401

Please help. I create a api app and trying to create new user.
I mangage to get access_token. This token worked on api docs site but when I made a request in a backend of nextjs I got this error

Hey @lucas8 welcome to the community!

Can you help me better understand your use case here? Are you attempting to create a user in Auth0 using the Management API from a nextjs backend?

The more detail you can provide the better, thanks!

I missed spell a header hehe

1 Like

But I have another issue:
When logout from a user, cookie appSession is deleted.
Then reloading the app, previous appSession is auto added to cookie so you dont need to re login to user the app.
Im expecting user have to login after logout to use the app