Skip to content

Commit b465bf6

Browse files
auto: format code
1 parent f46946c commit b465bf6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/openauth/src/provider/password.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -385,18 +385,18 @@ export function PasswordProvider(
385385
email,
386386
})
387387
}
388-
388+
389389
if (action === "register" && provider.type === "code") {
390390
const code = generate()
391391
await config.sendCode(provider.email, code)
392392
return transition({
393-
type: "code",
394-
code,
395-
password: provider.password,
396-
email: provider.email,
393+
type: "code",
394+
code,
395+
password: provider.password,
396+
email: provider.email,
397397
})
398398
}
399-
399+
400400
if (action === "verify" && provider.type === "code") {
401401
const code = fd.get("code")?.toString()
402402
if (!code || !timingSafeCompare(code, provider.code))

0 commit comments

Comments
 (0)