UNPKG

@astro-auth/providers

Version:

The providers package of the Astro Auth library

23 lines (22 loc) 693 B
const ZoomProvider = (options) => { return { id: "zoom", name: "Zoom", type: "oauth", scope: "user:read", options, authorization: "https://zoom.us/oauth/authorize?scope", token: "https://zoom.us/oauth/token", userinfo: "https://api.zoom.us/v2/users/me", profile(profile) { return { id: profile.id, name: `${profile.first_name} ${profile.last_name}`, email: profile.email, image: profile.pic_url, originalUser: Object.assign({}, profile), }; }, }; }; export default ZoomProvider;