Skip to content

basalt / auth/src / oauthRoutes

Function: oauthRoutes() ​

> oauthRoutes(options): BasaltRoute[]

Defined in: auth/src/oauth-plugin.ts:78

Ready-made OAuth routes:

  • GET /auth/oauth/:provider → 302 to the provider's authorize URL.
  • GET /auth/oauth/:provider/callback → exchanges the code and logs in.

Parameters ​

options ​

OAuthRoutesOptions

Returns ​

BasaltRoute[]

Released under the MIT License.