Skip to content

Commit

Permalink
load the session if the session is not preloaded already
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt L authored and Matt L committed Oct 16, 2024
1 parent a02cd99 commit f1f3c8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/doorkeeper/tokens_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class TokensController < Doorkeeper::ApplicationMetalController

def create
headers.merge!(authorize_response.headers)
session.send(:load!) if session.id.nil?
render json: authorize_response.body,
status: authorize_response.status
rescue Errors::DoorkeeperError => e
Expand Down

0 comments on commit f1f3c8f

Please sign in to comment.