Creates an unverified totp device
Request
Body Params application/json
{
"deviceName": "asdf123"
}
Request Code Samples
curl --location --request POST 'http://localhost:8000//totp/device' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceName": "asdf123"
}'
Responses
application/json
Information about the created (unverified) device. Based on the this,
the user can add the device to their TOTP app and verify it.
{
"status": "OK",
"deviceName": "asfd123",
"qrCodeString": "otpauth://totp/Supertokens:alice@google.com?secret=JBSWY3DPEHPK3PXP&issuer=Supertokens",
"secret": "JBSWY3DPEHPK3PXP"
}
Modified at 2024-10-01 07:35:40