Skip to content

Commit 92edac3

Browse files
committed
Return email address and users along with cookies
1 parent af9c1b6 commit 92edac3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/controllers/sessions/magic_links_controller.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ def respond_to_valid_code_from(magic_link)
3030
end
3131

3232
format.json do
33-
render json: { session_token: cookies[:session_token] }
33+
render json: {
34+
email_address: magic_link.identity.email_address,
35+
users: magic_link.identity.users,
36+
session_token: cookies[:session_token]
37+
}
3438
end
3539
end
3640
end

0 commit comments

Comments
 (0)