'Integrate Both Google Sign In and Local sign-In in web app

I am creating a web app and i want to be able to register users local through a registeration form which will have a password form as well. But i also want users to be registered to through GOOGLE SIGNIN api. Problem is in my database the password field is required. Is there a possible logic to store users that registered with google in the db without getting errors because google wont provide a password for them to the db?

I am Using Node Express js for server and Mongodb for database



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source