Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function get(request, response, next) {
UserSession.authorize(
{
clientId: CLIENT_ID,
redirectUri: REDIRECT_URI
},
response
);
}
app.get("/authorize", function(req, res) {
UserSession.authorize(credentials, res);
});