Skip to content

Allow returning auth info as part to the response type #50

@00dav00

Description

@00dav00

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions