https://github.com/cloudflare/workers-oauth-provider/ Review and if it makes sense lets switch to it.