lib/mangadex/auth.rb in mangadex-5.7.5 vs lib/mangadex/auth.rb in mangadex-5.7.5.1
- old
+ new
@@ -56,15 +56,10 @@
raise Errors::AuthenticationError.new(error.response)
end
sig { returns(Hash) }
def self.check_token
- JSON.parse(
- Mangadex::Internal::Request.get(
- '/auth/check',
- raw: true,
- )
- )
+ Mangadex::Internal::Request.get('/auth/check')
end
sig { returns(T.any(T::Boolean, Mangadex::Api::Response)) }
def self.logout
return true if Mangadex.context.user.nil?