OAuthServer

OAuthServer. OAuthServer

The OAuthServer class. This wrapper also implements the PKCE support, to use it, check the interface AuthorizationCode

Constructor

new OAuthServer(options, customErrorResponseopt)

Parameters:
Name Type Attributes Description
options OAuthServerOptions
customErrorResponse CustomErrorResponse <optional>

If you want to handle the errors for yourself, use this function

Source:

Methods

authenticate(optionsopt) → {ExpressMiddleware}

Parameters:
Name Type Attributes Description
options AuthenticateOptions <optional>

The OAuth2Server's AuthenticateOptions

Source:

authorize(optionsopt) → {ExpressMiddleware}

Parameters:
Name Type Attributes Description
options AuthorizeOptions <optional>

The OAuth2Server's AuthorizeOptions

Source:

token(optionsopt) → {ExpressMiddleware}

Parameters:
Name Type Attributes Description
options TokenOptions <optional>

The OAuth2Server's TokenOptions

Source: