WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 736ea03

Browse files
committed
Fix typo in generateAuthenticationOptions()
1 parent 1f6216e commit 736ea03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/server/src/authentication/generateAuthenticationOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export async function generateAuthenticationOptions(
5656
challenge: isoBase64URL.fromBuffer(_challenge),
5757
allowCredentials: allowCredentials?.map((cred) => {
5858
if (!isoBase64URL.isBase64URL(cred.id)) {
59-
throw new Error(`excludeCredential id "${cred.id}" is not a valid base64url string`);
59+
throw new Error(`allowCredential id "${cred.id}" is not a valid base64url string`);
6060
}
6161

6262
return {

0 commit comments

Comments
 (0)