Constructs an instance of this controller.
Request an authorization from a registered OAuth provider by redirecting the user to the provider authorization page.
Request a remote access token and refresh token from an authorized OAuth provider and return a status response.
Requests a user's profile information. This endpoint is
protected and a valid access token must be attached in
the Authorization
request header, in signed cookies or
in browser cookies.
The request is secured using the AuthGuard guard
which attaches a payload
to the request object.
An express
request used to extract the authenticated user payload.
Promise
Generated using TypeDoc
The OAuth controller of the app. Handles requests about third-party authentication using the OAuth standard.
These request handlers can be used to link OAuth-compatible third-party (remote) accounts such as a user's Strava or Apple Health account.
This controller defines the following routes:
/oauth/:provider/authorize
GET
/oauth/:provider/callback
GET
v0.3.0