Customize nested NPM dependency
Strapi Users & Permissions plugin allows to enable and configure providers, for end-users to login via a third-party provider to access the content of a font-end application through the Strapi application API. It uses Grant and Purest to enable authentication in our application. Among the providers, we are using Google for login.
Roles & Permissions - Strapi Developer Docs
This plugin provides a way to protect your API with a full authentication process based on JWT. This plugin comes also…
For Google OAuth login, you can use the
hd parameter to optimize the OpenID Connect flow for users of a particular domain associated with a Google Cloud organization. (Read more at
OpenID Connect | Google Identity | Google Developers
Google's OAuth 2.0 APIs can be used for both authentication and authorization. This document describes our OAuth 2.0…
How to customize Grant library in order to use hd parameter in Strapi
- Modify the codes as you need.
- I add hd parameter in lib/flow/oauth2.js file
3. Update package.json by using its library