3

I have a Django DRF serving APIs and an Angular front end for a solution I am developing. I want to integrate SendBird Chat API into the application to allow authenticated users to chat to each other.

SendBird has a JavaScript API which I can use, but my query is how are my authenticated user details passed to SendGrid, e.g. if user X logins into website and user Y logs into website - how do I allow them to talk to each other.

I am pretty sure I've misunderstood something around sessions but any help is appreciated.

I am not looking for a specific code answer but a general architectural answer.

Rutnet
  • 1,533
  • 5
  • 26
  • 48

1 Answers1

3

The process to pass your user's details to SendBird should follow these steps:

  • Create a SendBird user account via the Platform API when your user signs up on your service.
  • Save the access token to your secured persistent store.
  • Load the access token in your client and pass it to the SendBird login method.
  • Periodically update your access token by issuing a new token to replace the previous one.

You can find more details about it here.

Jason Allshorn
  • 1,625
  • 1
  • 18
  • 27