3.0.1 • Published 1 year ago

bloggify-passport v3.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
1 year ago

bloggify-passport

Version Downloads

Passport.js authentication for Bloggify.

:cloud: Installation

# Using npm
npm install --save bloggify-passport

# Using yarn
yarn add bloggify-passport

:clipboard: Example

const passport = ["passport", {
    login_url: "/user/signin",
    verify_callback (email, password, cb) {
        if (email === "foo@bar.com" && password === "42") {
            return cb(null, { name: "foo" })
        }
        cb(new Error("Invalid username or password."))
    }
}]

:question: Get Help

There are few ways to get help:

  1. Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
  2. For bug reports and feature requests, open issues. :bug:

:memo: Documentation

Plugin Configuration

  • Object config:
  • strategy (String): The PassportJS strategy name (default: "local").
  • auth_options (Object): Contains the authentication options.
  • strategy_options (Object): Contains the strategy options.
  • success_url (String): The access URL.
  • login_url (String): The login URL.
  • verify_callback(Function): The PassportJS callback function.
  • failure_url (String): The login error URL.
  • fresh_user (String): Whether to reload the user data on each request (default: false)

The model objects can be accessed by requiring the module or accessing the Bloggify.models object.

:yum: How to contribute

Have an idea? Found a bug? See how to contribute.

:dizzy: Where is this library used?

If you are using this library in one of your projects, add it in this list. :sparkles:

  • bloggify-user-auth

:scroll: License

MIT © Bloggify

3.0.1

1 year ago

3.0.0

1 year ago

2.1.4

4 years ago

2.1.3

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.3

4 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

1.0.0-alpha

7 years ago