AuthenticationFunction: ((authSecrets, context, logger) => Promise<AccessTokenInfo>)

A function used to authenticate a request in the application. Given the request's context, this function should return an object containing either user or app information if valid, or throw NBErrors if invalid.

Type declaration

Returns

  • an object containing either user or app information if valid

Generated using TypeDoc