bigblindB
Convex Community3mo ago
1 reply
bigblind

Convex auth: override requested scopes

I'm using the Discord oauth provider, and according to the auth.js docs, I should be able to override the requested scopes like this:


import { convexAuth } from "@convex-dev/auth/server";
import Discord from "@auth/core/providers/discord";

export const { auth, signIn, signOut, store, isAuthenticated } = convexAuth({
  providers: [Discord({
    authorization: {
      params: {
        scope: "identify  "
      }
    }
  })]
});


However, when I sign in, it's still requesting with scopes identify email, and I'd rather not have the user's email address, because I don't need it.
Was this page helpful?