Skip to content

Commit

Permalink
update github scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesthl committed Apr 9, 2024
1 parent 612e7ac commit e1f00ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/api/src/controller/auth/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const githubClient = (c: Context<AppContext>) => new GitHub(c.env.GITHUB_CLIENT_

export const getGithubAuthorizationUrl = async ({ c, state }: { c: Context<AppContext>; state: string }) => {
const github = githubClient(c);
return await github.createAuthorizationURL(state);
return await github.createAuthorizationURL(state, {
scopes: ["read:user", "user:email"],
});
};

export const createGithubSession = async ({
Expand Down

0 comments on commit e1f00ee

Please sign in to comment.