Hi everyone,
Is it possible to allow users to log in with their Microsoft account if they originally signed up using an email and password? I’m trying to implement a feature that links a Microsoft account to an existing account during login by comparing email addresses, but I’m struggling to make it work. Has anyone dealt with a similar situation and found a solution they could share?
Hey @carloslanderdahl27 welcome to the forum.
Ditto to what @jonathan.hernandez said – Bubble’s user authentication isn’t as robust of some other systems here in 2024 where you can come and go via the social sign on of your choice. So the way works as of now is as follows: the way user signs up is the way they will sign in for any subsequent visit to your app.
Also, if your goal is reducing friction or making it easy for people to sign in, then on the Log the User In workflow set the “Stay logged in” to yes. That will keep them logged in for 365 days and in certain aspects is better than social sign on https://www.youtube.com/watch?v=ebC1l6QWmoM&t=114s.
Actually, I found a way to achieve this:
For example, if you have a user created through an admin panel with a temporary password, you can link a Microsoft account (or any other social login) to this user. This can be done by executing a “Sign the user up/log them in” workflow while they are logged into the system.
The downside is that the user will need to log in at least once using the conventional email and password method. After logging in, they can connect their Microsoft account within the app. From that point forward, they can log in directly using their Microsoft account.
This solution ensures that their accounts are linked but does require the initial login to be performed manually.