News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
how to allow multiple user login in @ringcentral/sdk
Tags: sdk, authentication
Dec 14, 2023 at 10:34am   •   2 replies  •  0 likes
sattar k

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 Answers
answered on Dec 18, 2023 at 3:20am  

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



 0
answered on Dec 15, 2023 at 11:22am  

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.


 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us