By Imran Baali
Google auth with token helps you to easily create google authentication available for your users with idToken. It uses the official google-auth-library library to execute the actions. You can get it working in seconds in your application. EASY!
released November 15, 2025
npm install strapi-google-auth-with-token
Google auth with token helps you to easily create Google authentication for your users using the Sign In With Google button. It uses the official google-auth-library to execute the actions and verify the token. You can get it working in seconds 🫰.
Google makes One Tap authentication for smooth authentication with just one click, no need for redirection URL

npm install strapi-google-auth-with-token
# or
yarn add strapi-google-auth-with-tokenmodule.exports = {
'strapi-google-auth-with-token': {
enabled: true,
fullNameField: 'fullName', // (Optional) This is the attribute name in Strapi user entity where you will save the user full name
firstNameField: 'firstName', // (Optional) This is the attribute name in Strapi user entity where you will save the user first name
lastNameField: 'lastName', // (Optional) This is the attribute name in Strapi user entity where you will save the user last name
pictureField: 'profileImage', // (Optional) This is the attribute name in Strapi user entity where you will save the user Gmail picture
pictureFolderName: 'profiles', // (Optional) The name of the folder where user Gmail picture will be stored
// PS: You can use only some of them or none of them
// BTW: You need to create these attributes in the Strapi user entity if you provide them in this config
},
};
// or in typescript for config/plugins.ts
export default () => ({
"strapi-google-auth-with-token": {
enabled: true,
fullNameField: 'fullName', // (Optional) This is the attribute name in Strapi user entity where you will save the user full name
firstNameField: 'firstName', // (Optional) This is the attribute name in Strapi user entity where you will save the user first name
lastNameField: 'lastName', // (Optional) This is the attribute name in Strapi user entity where you will save the user last name
pictureField: 'profileImage', // (Optional) This is the attribute name in Strapi user entity where you will save the user Gmail picture
pictureFolderName: 'profiles', // (Optional) The name of the folder where user Gmail picture will be stored
// PS: You can use only some of them or none of them
// BTW: You need to create these attributes in the Strapi user entity if you provide them in this config
},
});

{
method: 'POST',
path: 'STRAPI_BACKEND_URL/strapi-google-auth-with-token/auth', // like: http://localhost:1337/strapi-google-auth-with-token/auth
data: {
token: idToken // get the token from the Google sign-in button
}
}Any bugs/issues you may face can be submitted as issues in the GitHub repo.
Share your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.
Submit
