-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Magic link login #3246
Add Magic link login #3246
Conversation
We might need to make sure we're sending |
|
||
contextBridge.exposeInMainWorld('electron', electronAPI); | ||
|
||
module.exports = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed to change this to module.exports
to avoid a fatal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Logging in with Username + PW works
✅ Logging in with Username + Code works
✅ Logging in with Username + Magic Link
✅ Quit after Sign In works well
Works exactly as advertised Dan!!
this.setState({ authStatus: 'submitting' }, async () => { | ||
try { | ||
const response = await fetch( | ||
'https://app.simplenote.com/account/request-login', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it a regular practise to leave URLs like this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ehh probably not, I'll see if there's some globals or a config or something!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other urls were just hard code like that so I left these in!
All sorted! Thanks @jleandroperez |
Fix
Adds the option to login via a link or code to the Electron apps.
Test
Release
Added the option to log in via "magic" link or code.