Last active
August 21, 2018 16:04
-
-
Save johnnytomcat/ff01ea933ea39395eac7e8d954d7b03b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
class SessionsController < Devise::SessionsController | |
def create | |
super { @token = current_token } | |
end | |
private | |
def current_token | |
request.env['warden-jwt_auth.token'] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment