Pass a server token when creating a magic link via API

This commit is contained in:
Fernando Olivares
2025-12-12 12:27:05 -06:00
committed by Stanko K.R.
parent a75a939289
commit 877f82c0cc
2 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ class SessionsController < ApplicationController
respond_to do |format|
format.html { redirect_to_session_magic_link magic_link }
format.json { head :created }
format.json { render json: { pending_authentication_token: pending_authentication_token_for(email_address) }, status: :created }
end
else
head :unprocessable_entity