Module: NetDocuments::UseToken::Controls::Token::Expired

Defined in:
lib/net_documents/use_token/controls/token.rb

Class Method Summary collapse

Class Method Details

.example(expiration_time: nil, refresh_token: nil) ⇒ Object



51
52
53
54
55
# File 'lib/net_documents/use_token/controls/token.rb', line 51

def self.example(expiration_time: nil, refresh_token: nil)
  expiration_time ||= Controls::Time::Offset.example(offset_milliseconds:)

  Token.example(expiration_time:, refresh_token:)
end

.offset_millisecondsObject



57
58
59
# File 'lib/net_documents/use_token/controls/token.rb', line 57

def self.offset_milliseconds
  -1
end