Closed
Description
I want user to authenticate just using phone number and OTP.
My flow is something like this.
Sign up: Enter Phone -> generate OTP -> verify OTP -> success
Login: Enter Phone -> generate OTP -> verify OTP -> success
I saw there is a closed PR #5306 for this. I will definitely look at it later but right now I need POC app using OTP flow.
I was wondering if I can use custom auth and get it working. I tried to integrate it
new ParseServer({
databaseURI: process.env.databaseUri,
cloud: process.env.CLOUD_CODE_MAIN || __dirname + "/cloud/main.js",
appId: process.env.organinationId,
restAPIKey: process.env.organinationSecret,
javascriptKey: process.env.organinationSecret,
serverURL: server.api,
masterKey: process.env.organinationSecret,
auth: {
otpAuth: {
module: CustomAuth
}
}
});
But I can't find any documentation to move ahead.
Can anyone guide how to achieve simple OTP authentication flow?
Metadata
Metadata
Assignees
Labels
No labels