Sha256: 77edbdc648cec9e9e43906b8dcf8eb69116061b67c080b5fe8574bf89190af45

Contents?: true

Size: 1.24 KB

Versions: 10

Compression:

Stored size: 1.24 KB

Contents

Description:
  This generator will install all the necessary configuration and migration
  files for the devise_jwt_auth gem. See
  https://github.com/lynndylanhurley/devise_jwt_auth for more information.

Arguments:
  USER_CLASS # The name of the class to use for user authentication. Default is
             # 'User'
  MOUNT_PATH # The path at which to mount the authentication routes. Default is
             # 'auth'. More detail documentation is here:
             # https://devise-token-auth.gitbook.io/devise-token-auth/usage

Example:
  rails generate devise_jwt_auth:install User auth

  This will create:
      config/initializers/devise_jwt_auth.rb
      db/migrate/<%= Time.zone.now.utc.strftime("%Y%m%d%H%M%S") %>_create_devise_jwt_auth_create_users.rb
      app/models/user.rb

  If 'app/models/user.rb' already exists, the following line will be inserted
  after the class definition:
      include DeviseJwtAuth::Concerns::User

  The following line will be inserted into your application controller at
  app/controllers/application_controller.rb:
      include DeviseJwtAuth::Concerns::SetUserByToken

  The following line will be inserted at the top of 'config/routes.rb' if it
  does not already exist:
      mount_devise_jwt_auth_for "User", at: 'auth'

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
devise_jwt_auth722-0.1.7 lib/generators/devise_jwt_auth/USAGE
devise_jwt_auth7-0.1.7 lib/generators/devise_jwt_auth/USAGE
devise_jwt_auth-0.1.7 lib/generators/devise_jwt_auth/USAGE
devise_jwt_auth-0.1.6 lib/generators/devise_jwt_auth/USAGE
devise_jwt_auth-0.1.5 lib/generators/devise_jwt_auth/USAGE
devise_jwt_auth-0.1.4 lib/generators/devise_jwt_auth/USAGE
devise_jwt_auth-0.1.3 lib/generators/devise_jwt_auth/USAGE
devise_jwt_auth-0.1.2 lib/generators/devise_jwt_auth/USAGE
devise_jwt_auth-0.1.1 lib/generators/devise_jwt_auth/USAGE
devise_jwt_auth-0.1.0 lib/generators/devise_jwt_auth/USAGE