Created a folder zoom in frontend/app/api and created two files, generateToken.ts and route.ts. In generateToken.ts, created a function generateZoomToken to generate an access token, followed documentation here https://developers.zoom.us/docs/internal-apps/s2s-oauth/
Then went to create a function in the same file to export the access token and made this the default export in route.ts for Next.js configuration. Added a section "Zoom testing" in the Testing Endpoint sections and created a button to test the access token generation. Onclick of the button gives a sample access token. See screenshot below:
Created a folder zoom in frontend/app/api and created two files, generateToken.ts and route.ts. In generateToken.ts, created a function generateZoomToken to generate an access token, followed documentation here https://developers.zoom.us/docs/internal-apps/s2s-oauth/
Then went to create a function in the same file to export the access token and made this the default export in route.ts for Next.js configuration. Added a section "Zoom testing" in the Testing Endpoint sections and created a button to test the access token generation. Onclick of the button gives a sample access token. See screenshot below: