I am trying to integrate Realm into my project using the authentication facility

Hi,
I am trying to integrate Realm into my project. I just want to use the authentication facility of Realm.I am focusing on the “Anonymous User” login and "Email Password " login.
My requirement is to change the “Refresh Token” and “Auth Token” validation times. How can I achieve that? I do not want to use any external auth with Realm (I do not want the Custom JWT method shown in the documentation. Because I do not want any external auth system like Firebase or anything like that). Is there any way to change the “Auth Token” and “Refresh Token” expiration times?

Hi @VISHNU_KUMAR,

Sessions expires after 30 minutes and I think there is no way to customize this for security reasons.

But refresh tokens are consumed automatically by the Realm SDKs to refresh the auth token when needed. It should be completely transparent for you as a developer because this logic is already bundled in the SDK.

Cheers,
Maxime.