Skip to content

Commit d10e14f

Browse files
fix: passwordless' SSL check was backwards (#22)
1 parent 42fb3af commit d10e14f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/passwordless/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,10 @@ export default class PasswordlessAuthentication<State> {
275275
const magicLink = new URL(baseURL.href);
276276
if (
277277
process.env.NODE_ENV !== 'development' &&
278-
magicLink.protocol !== 'http:'
278+
magicLink.protocol !== 'https:'
279279
) {
280280
throw new Error(
281-
`Cannot use non-ssl callback URL in production. If you are running ` +
281+
`Cannot use the non-ssl callback URL, "${magicLink.href}", in production. If you are running ` +
282282
`locally, you can set the NODE_ENV environment variable to development. ` +
283283
`If you are running in production you can set BASE_URL to the https ` +
284284
`URL for your app.`,

0 commit comments

Comments
 (0)