Hi!
How do I set the expiration time for the session token?
I want to set the expiration time to 1 hour, but I can’t find a way to set it.
And is there no way to delete a particular session token?
Hi!
How do I set the expiration time for the session token?
I want to set the expiration time to 1 hour, but I can’t find a way to set it.
And is there no way to delete a particular session token?
Hello @itsbeomy, and welcome to the Sendbird community!
You can set expires_at
to a UNIX timestamp in the request body when making a POST API request to the /v3/users/{user_id}/token
endpoint. Please refer to the following docs page: Platform API - Issue a session token
We do not have a way to delete specific session tokens, you can only revoke all session tokens for a specific user. Reference: Platform API - Revoke all session tokens