What is the problem the enhancement will solve?
Some gql clients expect the auth info (token, client id and expiration date) to be part of the return type instead of taking them from the response headers
Describe the solution you have in mind
Add a field to the login mutation that includes auth info, it can be something like:
field auth_info, Types::AuthInfo, null: true
And the auth info type can look like this:
class Types::AuthInfo < GraphQL::Schema::Object
field :access_token, String, null: false
field :token_type, String, null: false
field :client, String, null: false
field :expiry, Date, null: true
field :uid, String, null: false
end
What is the problem the enhancement will solve?
Some gql clients expect the auth info (token, client id and expiration date) to be part of the return type instead of taking them from the response headers
Describe the solution you have in mind
Add a field to the login mutation that includes auth info, it can be something like:
And the auth info type can look like this: