Skip to content

Commit

Permalink
feat: Add user scope for email
Browse files Browse the repository at this point in the history
  • Loading branch information
colinjfw committed Sep 19, 2019
1 parent c93443c commit a275239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export async function callback(req: Request, res: Response) {
res.redirect(url);
}

const loginUrl = `https://github.com/login/oauth/authorize?client_id=${CLIENT_ID}&redirect_uri=${BASE_URL}/login/cb`;
const loginUrl = `https://github.com/login/oauth/authorize?scope=user&client_id=${CLIENT_ID}&redirect_uri=${BASE_URL}/login/cb`;

export function auth(app: Application) {
app.get("/login", (req: Request, res: Response) => res.redirect(loginUrl));
Expand Down

0 comments on commit a275239

Please sign in to comment.