burfi's avatar
Level 2

Why can't I post a reply?

It is saying something like you are posting too fast while it has been more than 2 hours...

@vincent15000 if you could read this, I am facing an issue while trying to post a reply to that thread.

sorry for this but my reply was ---

2FA is popular over sms (or email) here and I want to implement that.

Yes, I am doing a Google OAuth login using Socialite. It works fine.

if (!isset($newUser)) 
        {
            $user = User::create(
                [
                    'google_id' => $googleUser->id,
                    'name' => $googleUser->name,
                    'email' => $googleUser->email,
                    'password' => Hash::make($googleUser->token),
                    'is_active' => 1,
                ]
            );
            
            Auth::login($user);
        
            return redirect(RouteServiceProvider::HOME);

        } else {
...

Do you think Homestead based setup could be an issue here?

1 like
1 reply
vincent15000's avatar

I don't know Homestead.

If you want to authenticate via Socialite and Google OAuth, it's different from authenticating with 2 factors authentication.

Sorry but what you say is very very confusing.

What is really your problem ? 2 factors authentication ? OAuth authentication ?

Are you trying to login with 2 factors with OAuth and Socialite, which has no sense ?

Please or to participate in this conversation.