Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

'signInWithEmailLink failed: First argument "email" must be a valid string' on MacOS Safari 14.1 #2

Copy link
Copy link
@mknadler

Description

@mknadler
Issue body actions

I created an account by clicking the "Sign up" button in the header. I then selected the email flow, entered an email address, and hit "Login in with email". When I clicked the link, components.ai opened to a "Logging you in..." screen. However, this message does not go away, and the console showed the error at the bottom of this issue. Navigating to other pages shows that I am, in fact, not logged in (the "log in / sign up" prompt still appears in the navigation).

Opening the original link in Chrome instead worked just fine.

Both refreshing the "Logging you in..." page in Safari and opening the same link in a new tab caused the same issue to reoccur.

I then restarted the process in Safari (generated a new signin email) and that did work.

The maybe-bad sign in link: https://compai.firebaseapp.com/__/auth/action?apiKey=AIzaSyDxrcJ6IDRVkl8nAGHd6zg4ocbENWl9i3s&mode=signIn&oobCode=lHLzIp-wqJVXXj3gpB2ONJ2IjvvdqWpM-87OYWoDPFMAAAF5XfdS1g&continueUrl=https://components.ai/finish-login&lang=en

The maybe-good sign in link: https://compai.firebaseapp.com/__/auth/action?apiKey=AIzaSyDxrcJ6IDRVkl8nAGHd6zg4ocbENWl9i3s&mode=signIn&oobCode=U6gyABkFoCFWhVUOWSYgcozZ7STjQ5FN03WNjYRktsoAAAF5Xf_K6Q&continueUrl=https://components.ai/finish-login&lang=en

One detail that may be relevant is that my email address has two periods in it.

[Error] Unhandled Promise Rejection: Error: signInWithEmailLink failed: First argument "email" must be a valid string.
	dispatchException (0fa7feec8dca5f0789c4c44d47396ecfa2e232f9.a2ab590f8b22e3ff9b90.js:1:33950)
	(anonymous function) (0fa7feec8dca5f0789c4c44d47396ecfa2e232f9.a2ab590f8b22e3ff9b90.js:1:30178)
	i (7e53249c1375544e7c0a5ab9bacd8e2db4df551b.b73efd7815ff9371b1bf.js:1:22153)
	s (7e53249c1375544e7c0a5ab9bacd8e2db4df551b.b73efd7815ff9371b1bf.js:1:22357)
	(anonymous function) (7e53249c1375544e7c0a5ab9bacd8e2db4df551b.b73efd7815ff9371b1bf.js:1:22416)
	Promise
	(anonymous function) (7e53249c1375544e7c0a5ab9bacd8e2db4df551b.b73efd7815ff9371b1bf.js:1:22307)
	(anonymous function) (finish-login-36fe89e868db5f2caf15.js:1:3375)
	Ii (framework.67afbef2c1f9cdc9de1b.js:1:116378)
	(anonymous function) (framework.67afbef2c1f9cdc9de1b.js:1:3877)
	vi (framework.67afbef2c1f9cdc9de1b.js:1:107297)
	vi
	(anonymous function) (framework.67afbef2c1f9cdc9de1b.js:1:56772)
	(anonymous function) (framework.67afbef2c1f9cdc9de1b.js:1:3877)
	Hl (framework.67afbef2c1f9cdc9de1b.js:1:56718)
	Ql (framework.67afbef2c1f9cdc9de1b.js:1:56653)
	fi (framework.67afbef2c1f9cdc9de1b.js:1:104763)
	Gi (framework.67afbef2c1f9cdc9de1b.js:1:120914)
	rs (framework.67afbef2c1f9cdc9de1b.js:1:121964)
	(anonymous function) (main-ed27532b3bf4f68ac543.js:1:12509)
	ye (main-ed27532b3bf4f68ac543.js:1:12515)
	l (0fa7feec8dca5f0789c4c44d47396ecfa2e232f9.a2ab590f8b22e3ff9b90.js:1:30462)
	(anonymous function) (0fa7feec8dca5f0789c4c44d47396ecfa2e232f9.a2ab590f8b22e3ff9b90.js:1:30247)
	r (0fa7feec8dca5f0789c4c44d47396ecfa2e232f9.a2ab590f8b22e3ff9b90.js:1:39902)
	c (0fa7feec8dca5f0789c4c44d47396ecfa2e232f9.a2ab590f8b22e3ff9b90.js:1:40114)
	(anonymous function) (0fa7feec8dca5f0789c4c44d47396ecfa2e232f9.a2ab590f8b22e3ff9b90.js:1:40173)
	Promise
	(anonymous function) (0fa7feec8dca5f0789c4c44d47396ecfa2e232f9.a2ab590f8b22e3ff9b90.js:1:40064)
	(anonymous function) (0fa7feec8dca5f0789c4c44d47396ecfa2e232f9.a2ab590f8b22e3ff9b90.js:1:19540)
	l (0fa7feec8dca5f0789c4c44d47396ecfa2e232f9.a2ab590f8b22e3ff9b90.js:1:30462)
	(anonymous function) (0fa7feec8dca5f0789c4c44d47396ecfa2e232f9.a2ab590f8b22e3ff9b90.js:1:30247)
	r (0fa7feec8dca5f0789c4c44d47396ecfa2e232f9.a2ab590f8b22e3ff9b90.js:1:39902)
	c (0fa7feec8dca5f0789c4c44d47396ecfa2e232f9.a2ab590f8b22e3ff9b90.js:1:40114)
	promiseReactionJob
	```
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.