We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42fb3af commit d10e14fCopy full SHA for d10e14f
packages/passwordless/src/index.ts
@@ -275,10 +275,10 @@ export default class PasswordlessAuthentication<State> {
275
const magicLink = new URL(baseURL.href);
276
if (
277
process.env.NODE_ENV !== 'development' &&
278
- magicLink.protocol !== 'http:'
+ magicLink.protocol !== 'https:'
279
) {
280
throw new Error(
281
- `Cannot use non-ssl callback URL in production. If you are running ` +
+ `Cannot use the non-ssl callback URL, "${magicLink.href}", in production. If you are running ` +
282
`locally, you can set the NODE_ENV environment variable to development. ` +
283
`If you are running in production you can set BASE_URL to the https ` +
284
`URL for your app.`,
0 commit comments