-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[WIP] Added Social, SMS and Webauthn to Magic.Link #3572
[WIP] Added Social, SMS and Webauthn to Magic.Link #3572
Conversation
i have been testing out the integration SMS + email seems to work as expected Socials currently log you in but no scopes are currently provided. |
@burnsy do you anticipate anything breaking here for existing Magic.link users? After a quick glance at the code, I don't understand if projects will be required to make a modification based on the new signup() function. If you don't know yet, that's fine as well. |
Right now yes there is breaking as it does not have a default type as it's not optional but it can be set to optional. And have the default type be email link. |
@burnsy Per #3596 to make certain the auth templates per provider are typed, would you be able to change the magic auth template to have roles in the requireAuth check?
Currently it is export const requireAuth = () => {
if (!isAuthenticated()) {
throw new AuthenticationError("You don't have permission to do that.")
}
// Custom implementation of RBAC is required for magicLink
} And we'll want to send in roles with the requireAuth directive. Thanks. |
@burnsy checking in on status here. Is this something you'd like to include in v1.0.0-rc? If so, would need to be wrapped up by this weekend. |
@burnsy checking in here — is this something you think you'd like to work on near-term? |
I am super packed in RL right now, looking for someone to take this over and finish it up! |
looping in @shahbaz17 Would this be something you could look into adding along with updates related to #4596? No pressure. Just determining how/if I should manage this. |
Still WIP.
Need to work out the final step on https://magic.link/docs/login-methods/social-logins/oauth-implementation/web
@seemcat is there anything you can add to this?