我在我的 rails 应用程序中使用 devise auth token 进行身份验证,我想在响应的标头中返回 uid 、 client 和 access-token
def custom_registration_function
new_user = User.new(....)
if(new_user.save)
// here i want to return the header to the response
end
end
我在我的 rails 应用程序中使用 devise auth token 进行身份验证,我想在响应的标头中返回 uid 、 client 和 access-token
def custom_registration_function
new_user = User.new(....)
if(new_user.save)
// here i want to return the header to the response
end
end