Erisa's discord oidc - User email was not returned. API permissions are likely incorrect.
Hi, I've tried setting up erisa' discord oidc worker with zero trust - https://github.com/Erisa/discord-oidc-worker
However, whenever I tried to authenticate I get this error
wrangler.toml
config.json
GitHub
GitHub - Erisa/discord-oidc-worker: Sign into Discord on Cloudflare...
Sign into Discord on Cloudflare Access, powered by Cloudflare Workers! - Erisa/discord-oidc-worker



4 Replies
let me know if you need any other info (pls ping on reply)
the email claim in the zt config needs to be set to the string
email
, not any actual email address
this only isnt mentioned in the readme because that field didnt exist when i made this, it would always use email
implicitly
im pretty sure you can also leave it blank, given its optional and my apps made prior to its existence have it blankThanks, that worked
ill submit a pr
cool, thanks