Renamed zoom to zoomvideo
This commit is contained in:
parent
0bb4678bf7
commit
30f30d7669
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
|||
}
|
||||
});
|
||||
|
||||
const redirectUri = encodeURI(process.env.BASE_URL + '/api/integrations/zoom/callback');
|
||||
const redirectUri = encodeURI(process.env.BASE_URL + '/api/integrations/zoomvideo/callback');
|
||||
const authUrl = 'https://zoom.us/oauth/authorize?response_type=code&client_id=' + client_id + '&redirect_uri=' + redirectUri;
|
||||
|
||||
res.status(200).json({url: authUrl});
|
|
@ -13,7 +13,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
|||
|
||||
if (!session) { res.status(401).json({message: 'You must be logged in to do this'}); return; }
|
||||
|
||||
const redirectUri = encodeURI(process.env.BASE_URL + '/api/integrations/zoom/callback');
|
||||
const redirectUri = encodeURI(process.env.BASE_URL + '/api/integrations/zoomvideo/callback');
|
||||
const authHeader = 'Basic ' + Buffer.from(client_id + ':' + client_secret).toString('base64');
|
||||
|
||||
return new Promise( async (resolve, reject) => {
|
Loading…
Reference in a new issue