Skip to content

Conversation

@rikonor
Copy link

@rikonor rikonor commented Aug 18, 2021

What does it do?

This change adds a magiclink provider under the Users & Permissions plugin.

Why is it needed?

This allows Strapi to support authenticating a user coming in via a "Magic Link". The need for this change came about when I was using NextAuth and their email provider (See NextAuth/email) which sends the user a magic link.

I initially stumbled upon NextAuth through this tutorial (See Strapi Blog: User Authentication in NextJS with Strapi). It covers authenticating with social providers but not with the stock "magic-link" method, which necessitated this change.

How to test it?

To test this change, start Strapi as usual, and under Settings > Users & Permissions > Providers, click on Magiclink, enable it and specify a Client ID which is equivalent to a key.

Then to authenticate (and possibly register) a user, make a call to /api/auth/magiclink/callback?email=<email>&access_token=<key>.

Related issue(s)/PR(s)

N/A

@strapi-cla
Copy link

strapi-cla commented Aug 18, 2021

CLA assistant check
All committers have signed the CLA.

@derrickmehaffy
Copy link
Member

This pull request has been mentioned on Strapi Community Forum. There might be relevant details there:

https://forum.strapi.io/t/support-for-multiple-auth-providers/9889/3

@derrickmehaffy
Copy link
Member

Hi 👋
We now have released the v4. As of now, the v3 is in maintenance mode for 6 months. We will only be fixing critical and security issues on v3 from now on.
I will go ahead and close this PR. Thank you for contributing to Strapi 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants