delight-im / PHP-Auth

Authentication for PHP. Simple, lightweight and secure.
MIT License
1.09k stars 235 forks source link

How do I remember the user after calling admin()->logInAsUserById? #287

Open scifinder opened 1 year ago

scifinder commented 1 year ago

Hello! I had email and password authentication on my site using your library. Now I have connected an external authentication service (Mobile ID). After all the checks, the external service tells me that the user is successfully authenticated. But I need to pair with my existing system. Therefore, after receiving a signal from an external service, I call admin()->logInAsUserById. This system works well, except that the user is not saved in cookies. How do I remember the user after authentication?

nabeelalihashmi commented 1 year ago

Did you find the solution?