TokenValidator

A delegate the server calls to validate a presented bearer token. It receives the raw token string (the value after Bearer ) and returns a TokenInfo. Returning TokenInfo with valid == false (or throwing) rejects the request with HTTP 401.

@safe
alias TokenValidator = TokenInfo delegate
(
string token
)
@safe