struct

Authly::Claims

Inherits Struct < Value < Object

The verified claims of an access token, as downstream code sees them.

Constructors

from(payload : Hash) : Claims
Source
new(payload : Hash(String, JSON::Any))
Source

Instance methods

[](name : String) : JSON::Any
Source
[]?(name : String) : JSON::Any | Nil
Source
all_scopes?(required : Enumerable(String)) : Bool
Source
any_scope?(candidates : Enumerable(String)) : Bool
Source
audience?(audience : String) : Bool
Source
client_id
Source
payload
Source
scope?(scope : String) : Bool
Source
scopes
Source
subject
Source