Railgun JWT

JwtValidator

Defines a validator for JWT decoding.

Table of Contents

Methods

validate()  : void
Validates the claims provided in a JWT.

Methods

validate()

Validates the claims provided in a JWT.

public validate(object $headers, object $payload) : void

If values are not as expected, an exception should be thrown, preferably one implementing WithPayload.

Parameters
$headers : object

Headers section from the provided JWT.

$payload : object

Payload section from the provided JWT.

Tags
throws
Throwable

If claims could not be validated.


        
On this page

Search results