Exception: AtprotoAuth::Token::ExpiredTokenError

Inherits:
Error
  • Object
show all
Defined in:
lib/atproto_auth/token/refresh.rb

Overview

Specific token error types

Instance Attribute Summary

Attributes inherited from Error

#error_code, #retry_possible, #token_type

Instance Method Summary collapse

Constructor Details

#initialize(token_type:) ⇒ ExpiredTokenError

Returns a new instance of ExpiredTokenError.



19
20
21
22
23
24
25
26
# File 'lib/atproto_auth/token/refresh.rb', line 19

def initialize(token_type:)
  super(
    "Token has expired",
    token_type: token_type,
    error_code: "token_expired",
    retry_possible: true
  )
end