Overview of OAuth2 and OIDC flow implementation
mainThe code in src/server/oauth is designed to handle OAuth2 and OpenID Connect (OIDC) flows. It is adapted from the @auth/core package. While it maintains a similar structure to @auth/core, certain types and functions have been copied over and modified because the original package's implementation relied on internal members.
To identify logic that differs from the original @auth/core implementation, look for comments marked with ConvexAuth: within the source code.