How to use moralis auth to our custom api endpoints?

We want to use our own database and api endpoints. Is it possible to use Moralis.authenticate to authenticate with our own api endpoints?

You could pass session info e.g. sessionToken to your API to use. Sessions - Moralis

1 Like

Is there a way to validate the session from our end?

With the sessionToken you could validate by querying your _Session table/class from your API/backend.

That’s what we did. Thank you very much @alex!

1 Like