Generate OTP code
Authgear Admin GraphQL API supports generating OTP code on behalf of end-user when they asks for support.
The query:
mutation ($target: String!) {
generateOOBOTPCode(input: { target: $target }) {
code
}
}
The variables:
{
"target": "<USER_EMAIL_OR_PHONE_NUMBER>"
}
The sample variables:
The sample response:
{
"data": {
"generateOOBOTPCode": {
"code": "123456"
}
}
}
Last modified 7mo ago