struct Crabbit::OAuth2Token

Overview

Access token returned by an OAuth2TokenProvider.

expires_at uses the monotonic Time::Instant clock and must be in the future when installed.

Defined in:

crabbit/oauth2.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(value : String, expires_at : Time::Instant) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(value _value = @value, expires_at _expires_at = @expires_at) #

[View source]
def expires_at : Time::Instant #

def value : String #