Intergrate Github OAuth but cannot create new User
hello every one
I set up table like this (default)
import { defineSchema } from "convex/server";
import { authTables } from "@convex-dev/auth/server";
const schema = defineSchema({
...authTables,
});
export default schema;
but the git hub call back occur error like this
'Uncaught Error: Failed to insert or update a document in table "users" because it does not match the schema: Value does not match validator.
Path: .email
Value: null
Validator: v.string()
it's default and it's fail, I dont know why
2 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
The problem above can be fixed by setting the github email, cause the email is null which makes the process fails
https://stackoverflow.com/questions/35373995/github-user-email-is-null-despite-useremail-scope
Stack Overflow
Github user email is null, despite user:email scope
I am following Github’s OAuth flow, and obtaining an access token that gives me access to the user’s email scope. When I exchange a code for an access token, using the https://github.com/login/oauth/