2 parents 38f19d2 + 04c35ee commit 89b6a30Copy full SHA for 89b6a30
1 file changed
app/controllers/users/orcid_controller.rb
@@ -80,6 +80,7 @@ def search_and_link_callback
80
81
@user = User.from_orcid(response[:id])
82
sign_in @user
83
+ cookies[:_datacite] = encode_cookie(@user.jwt)
84
85
@user.update(orcid_search_and_link_access_token: response[:access_token],
86
orcid_search_and_link_refresh_token: response[:refresh_token],
0 commit comments