We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f46946c commit b465bf6Copy full SHA for b465bf6
packages/openauth/src/provider/password.ts
@@ -385,18 +385,18 @@ export function PasswordProvider(
385
email,
386
})
387
}
388
-
+
389
if (action === "register" && provider.type === "code") {
390
const code = generate()
391
await config.sendCode(provider.email, code)
392
return transition({
393
- type: "code",
394
- code,
395
- password: provider.password,
396
- email: provider.email,
+ type: "code",
+ code,
+ password: provider.password,
+ email: provider.email,
397
398
399
400
if (action === "verify" && provider.type === "code") {
401
const code = fd.get("code")?.toString()
402
if (!code || !timingSafeCompare(code, provider.code))
0 commit comments