Skip to content
Back

Check User on Server SDK

  • 0
  • General
  • Auth
  • React Native
  • Cloud
Sommm
3 May, 2025, 10:54

I have my backend which exposes some endpoints let's say

/feed (return a hard coded json as response)

I want this to be only accessible to users who are currently logged in to my React Native frontend using the SDK and sessions (not JWT)

the endpoint is publicly open but I want to check if the request is coming from the authenticated user or not. If not then I will return 401

Wherever I looked, I only found the JWT solution which I don't want to use because it seems like one more thing to keep track of in my application.

Is it possible I can do this without JWT?

TL;DR
Developers want to check if a user's session is valid without using JWT to access endpoints on a server SDK. Since they want to avoid JWT for simplicity, they can implement session management using custom cookies or session tokens. This solution allows them to authenticate users without the need for JWT.
Sommm
3 May, 2025, 10:54

To be precise I want to check if the session of the user is valid or not.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more