Skip to content

Function: bearerAuth()

nekte-protocol


nekte-protocol / server/src / bearerAuth

Function: bearerAuth()

bearerAuth(tokens): AuthHandler

Defined in: nekte-source/packages/server/src/auth.ts:27

Bearer token authentication. Validates the Authorization header against one or more valid tokens.

Parameters

tokens

string | string[]

Returns

AuthHandler