bloggify-github-login
Login with GitHub for Bloggify.
☁️ Installation
# Using npm npm install --save bloggify-github-login # Using yarn yarn add bloggify-github-login
📋 Example
const Bloggify = ;const GitHub = Bloggify;const User = BloggifymodelsUser; // On successful loginGitHub;
❓ Get Help
There are few ways to get help:
- Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
- For bug reports and feature requests, open issues. 🐛
📝 Documentation
Plugin Configuration
- Object
config
: loginURI
(String): The application login url.callbackURI
(String): The application login callback url.githubClient
(String): The application client id.githubSecret
(String): The application client secret.scope
(String): The user scopes (default:user:email
).
To create a GitHub application, click here.
Events
⬆️ The following events are emitted by the module:
-
login-error
(err
,lien
, ghApiClient)An error happened durring the error.
-
login-success
(token
,user
,ctx
,ghApiClient
)The user metadata was fetched. If you don't want to fetch
-
token
(token
,ctx
,ghApiClient
)Emitted when the token is successfully got.
😋 How to contribute
Have an idea? Found a bug? See how to contribute.