components/google/convex.config
Variables
default
const default: ComponentDefinition<any, {
CLIENT_ID: VString<string, "required">;
CLIENT_SECRET: VString<string, "required">;
}>;
The Google oauth component. Install it once, with the httpPrefix its
callback is served under, and bind the OAuth client's credentials:
app.use(authGoogle, {
httpPrefix: "/oauth/google",
env: {
CLIENT_ID: app.env.AUTH_GOOGLE_CLIENT_ID,
CLIENT_SECRET: app.env.AUTH_GOOGLE_CLIENT_SECRET,
},
});