module

LavinMQ::HTTP::OAuth2::FlexibleIntConverter

Parses an integer that may arrive as a JSON number or a JSON string, returning nil for unparseable values instead of raising. Microsoft Entra ID / Azure AD return expires_in as a string, which would otherwise abort the whole token exchange.

Class methods

from_json(pull : JSON::PullParser) : Int64 | Nil
Source
to_json(value : Int64 | Nil, json : JSON::Builder)
Source