mieszko4 / react-native-zoom-us

MIT License
122 stars 115 forks source link

How to generate JWT token using client secret key and client Id #345

Open Parivesh0094 opened 2 months ago

Parivesh0094 commented 2 months ago

How to generate JWT token using client secret key and client Id

vladyslavzhukovskyi commented 2 months ago

Algorithm must be HS256 secret or public key must be zoom app secret from zoom developers expires time must be minimum 30min and tokenExp property in payload must be the same as exp time. this is example at node js with jsonwebtoken for jwt`s

const token = jwt.sign({ appKey: ZOOM_APP_KEY, exp: 1709196922, tokenExp: 1709196922, }, ZOOM_APP_SECRET );

AakashGautam007 commented 3 weeks ago

There is some issue in ZoomUs.initialize even after jwt genrated from jwt.io

Possible Unhandled Promise Rejection (id: 4): Error: Error= 5 (unknown), internalErrorCode=124

Parivesh0094 commented 3 weeks ago

you can pass meeting id for generate jwt token

On Tue, Apr 23, 2024 at 11:18 AM AAKASH GAUTAM @.***> wrote:

There is some issue in ZoomUs.initialize even after jwt genrated from jwt.io

Possible Unhandled Promise Rejection (id: 4): Error: Error= 5 (unknown), internalErrorCode=124

— Reply to this email directly, view it on GitHub https://github.com/mieszko4/react-native-zoom-us/issues/345#issuecomment-2071458281, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWT7UZEVL5SH746OGXG4MS3Y6XY2ZAVCNFSM6AAAAABD37C5J6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZRGQ2TQMRYGE . You are receiving this because you authored the thread.Message ID: @.***>