Skip to content

Commit

Permalink
Fix DTA cookies not set when app configured for it
Browse files Browse the repository at this point in the history
  • Loading branch information
00dav00 committed Aug 7, 2022
1 parent ab9f448 commit 5440bc2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/graphql_devise/mutations/login.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ def resolve(email:, password:)

new_headers = set_auth_headers(resource)
controller.sign_in(:user, resource, store: false, bypass: false)
controller.resource = resource
controller.token.client = new_headers['client']
controller.token.token = new_headers['access-token']

yield resource if block_given?

Expand Down

0 comments on commit 5440bc2

Please sign in to comment.