Trying to set up a bubble app that integrates with Linear (auth 2.0 doc)
Doing the OAuth 2 manual dance was simple enough when I came across a big problem: I have no way to “sign the user in” or “log them in” when they come back to my app.
Bubble’s native user-agent flow has a “signup/login the user with social media” which is useful because your browser remembers the user and knows who he is so if he comes back a second time, you know he exists already, and you log him in.
BUT, I cannot use it because the user end point to get email/id is graphQL, not in REST, and from what I can tell it is required to be in REST.
So i try to set this up manually, but think about this scenario. The user has signed up, he comes to my landing page a second time and clicks “Sign in”, how do I know who he is? How do i check if hes logged in w/ Linear? And then forward him to my dashboard instead of sending him to Auth again.
If the user is sent to Linear Auth and has already “approved” my app, then they are just returned with a new code and a state to my app without having to authorize anything. Its as if you are starting fresh, so I have no way to verify the user has already created an account
I am quite stuck, any help is much appreciated!
