Class: GraphqlDevise::Types::CredentialType

Inherits:
BaseType
  • Object
show all
Defined in:
lib/graphql_devise/types/credential_type.rb

Instance Method Summary collapse

Instance Method Details

#access_tokenObject



12
13
14
# File 'lib/graphql_devise/types/credential_type.rb', line 12

def access_token
  object[DeviseTokenAuth.headers_names[:"access-token"]]
end

#clientObject



24
25
26
# File 'lib/graphql_devise/types/credential_type.rb', line 24

def client
  object[DeviseTokenAuth.headers_names[:client]]
end

#expiryObject



28
29
30
# File 'lib/graphql_devise/types/credential_type.rb', line 28

def expiry
  object[DeviseTokenAuth.headers_names[:expiry]]
end

#token_typeObject



20
21
22
# File 'lib/graphql_devise/types/credential_type.rb', line 20

def token_type
  object[DeviseTokenAuth.headers_names[:"token-type"]]
end

#uidObject



16
17
18
# File 'lib/graphql_devise/types/credential_type.rb', line 16

def uid
  object[DeviseTokenAuth.headers_names[:uid]]
end