Exception: AtprotoAuth::Token::InvalidTokenError

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

Overview

Raised when a token is structurally valid but has been invalidated or revoked

Instance Attribute Summary

Attributes inherited from Error

#error_code, #retry_possible, #token_type

Instance Method Summary collapse

Constructor Details

#initialize(token_type:) ⇒ InvalidTokenError

Returns a new instance of InvalidTokenError.



31
32
33
34
35
36
37
38
# File 'lib/atproto_auth/token/refresh.rb', line 31

def initialize(token_type:)
  super(
    "Token is invalid",
    token_type: token_type,
    error_code: "token_invalid",
    retry_possible: false
  )
end