Created
November 16, 2020 01:54
-
-
Save alancasagrande/61051101702e36e8e58fd69b59f6f492 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export async function verifyOtp(code) { | |
const res = await fetch('/verify_otp', { | |
method: 'POST', | |
headers: { 'Content-Type': 'application/json' }, | |
body: JSON.stringify({ code }), | |
}); | |
return res.json(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment