Skip to content

Commit f1f3c8f

Browse files
Matt LMatt L
authored andcommitted
load the session if the session is not preloaded already
1 parent a02cd99 commit f1f3c8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/controllers/doorkeeper/tokens_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class TokensController < Doorkeeper::ApplicationMetalController
66

77
def create
88
headers.merge!(authorize_response.headers)
9+
session.send(:load!) if session.id.nil?
910
render json: authorize_response.body,
1011
status: authorize_response.status
1112
rescue Errors::DoorkeeperError => e

0 commit comments

Comments
 (0)