monban-core

rubygems: monban-core

Monban - core

The authentication plugin for web api based on jwt

Table of Contents

Requirements

  • developed on ruby: 2.5.1

Usage

Errors

error class should be respond to below methods

module Monban
  module Core
    ERRORS = [
      :invalid_account!,
      :invalid_login!,
      :invalid_params!,
      :not_found!,
      :renew_token_expired!,
      :conflict!,
      :server_error!,
    ]
  end
end

Install

Add this line to your application's Gemfile:

gem 'monban-core'

And then execute:

$ bundle

Or install it yourself as:

$ gem install monban-core

License

monban/core is licensed under the MIT license.

Copyright © since 2018 [email protected]