Nexus API Reference

TokenExtractor

Tags
psalm-api

Pulls a credential string out of the request. Returns null when the request carries no token in this extractor's expected location.

Built-in extractors: BearerTokenExtractor (Authorization: Bearer ...), HeaderTokenExtractor (custom header), CookieTokenExtractor (signed cookie).

Table of Contents

Methods

extract()  : string|null

Methods

extract()

public extract(ServerRequestInterface $request) : string|null
Parameters
$request : ServerRequestInterface
Return values
string|null

        
On this page

Search results