Remove email address and users from magic link response
The identity endpoint can be used to fetch that information
This commit is contained in:
@@ -42,11 +42,7 @@ class Sessions::MagicLinksController < ApplicationController
|
||||
|
||||
format.json do
|
||||
new_access_token = magic_link.identity.access_tokens.create!(permission: :write)
|
||||
render json: {
|
||||
email_address: magic_link.identity.email_address,
|
||||
access_token: new_access_token.token,
|
||||
users: magic_link.identity.users
|
||||
}
|
||||
render json: { access_token: new_access_token.token }
|
||||
end
|
||||
end
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user