mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-29 04:59:51 +00:00
wip: zen
This commit is contained in:
parent
1024537b47
commit
70da3a9399
33 changed files with 2018 additions and 116 deletions
|
|
@ -111,11 +111,7 @@ export default {
|
|||
} else if (response.provider === "google") {
|
||||
if (!response.id.email_verified) throw new Error("Google email not verified")
|
||||
email = response.id.email as string
|
||||
}
|
||||
//if (response.provider === "email") {
|
||||
// email = response.claims.email
|
||||
//}
|
||||
else throw new Error("Unsupported provider")
|
||||
} else throw new Error("Unsupported provider")
|
||||
|
||||
if (!email) throw new Error("No email found")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue