Closed MarvinNazari closed 10 months ago
Hi @MarvinNazari, apologies for the delay.
All the methods of the Authentication API client return a Request
value, and this type has a parameters()
method that can be used to add new values to the request payload, or to modify the existing ones.
You can use it to pass your own realm value, e.g.
Auth0
.authentication()
.login(email: "...", code: "...", audience: "...", scope: "...")
.parameters(["realm": "email-verify"])
.start { print($0) }
Checklist
Describe the problem you'd like to have solved
We have a scenario in our app that needs to login with email and code to verify the email with a custom realm, in
Authentication
right now realm is hardcoded to always beemail
, we need to specify our own realm in this caseemail-verify
.Describe the ideal solution
We should be able to specify our own realm in this case
email-verify
for when login when usingAuthentication
. there is already a internal function that could be exposed.Alternatives and current workarounds
For workaround we are now just calling the endpoints ourselves.
Additional context
No response