Skip to main content
Question

how to allow multiple user login in @ringcentral/sdk

  • December 14, 2023
  • 2 replies
  • 184 views

  • Participating Frequently
  • 6 replies

how to allow multiple user login in @ringcentral/sdk@4.7.2

currently i am using JWT_TOKEN of one user but if I want to login with different user then i need to pass the JWT_token of other user also but if user is not devloper admin then how can i pass the JWT token.

const platform = sdk.platform();
const JWT_TOKEN = 'myJWTtoken'
platform
.login({jwt:JWT_TOKEN})
.then(() => {setCallService({ user: user, platform });
postLogin(platform);
cb && cb(); })
.catch((error)
=> {setCallService({ error: error });});


2 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2313 replies
  • December 15, 2023

A user does not need to be a developer admin to generate its own JWT token. The user just need to login the RC developer portal to generate its own JWT token.

If the app is supposed to serve multiple users and is required each user to login with their own credentials, then create and implement an authorization code flow app instead.


  • Author
  • Participating Frequently
  • 6 replies
  • December 18, 2023

what will be the best AUTH for my application

I want multiple users to use my application from frontend side

basically I am implementing full call center like feature in my application using both WEBRTC and API

frontend---------ReactJs where I implemented WEBRTC

backend-----Laravel where I am calling some ring central API



Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings