I'm using mongo atlas/realm in my React project. I log into a user using username and password and after I get an accessToken back from Mongo but with no secret key.
In my serverless Atlas function how would I possibly authenticate my token if I have no secret key? Can someone please help me the mongodb documentation is awful.
Help would be extremely appreciated. Please no ChatGPT responses, they dont help I have already tried.
I tried custom functions and everything but I just cant verify the tokens no matter what I try.