Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mecjos's avatar

Authentiaction with a url in e-mail?

Hi. I want some of my app users to sign in for some pages without sign up. To do this I want to use a specifica link in email for user. Is there a way to do that with laravel passport ?

Thank you.

0 likes
5 replies
mecjos's avatar

@vixo thank you.. It seems like it's for my case but I couldn't understand from doc. Can I use it with laravel passport. I don't want to break laravel passport structure.

Vixo's avatar

Can you describe what you exactly want to do ? What the whole idea has to do with passport ? You are trying to give access to your app users without signup does not really make sense to me, unless they are guests and that's what you mean.

I don't see this conflicts with passport, you can either provide links to a user and get them logged in automatically without filling their username and password

https://github.com/cesargb/laravel-magiclink#login-action

or if the case is for guests, you can allow them to view hidden content;

https://github.com/cesargb/laravel-magiclink#view-action

mecjos's avatar

@vixo I have several user roles and I want some roles can reach without sign-up. Some users already must authanticate with password grant. I will try it. Thank you.

Please or to participate in this conversation.