Skip to content

Instantly share code, notes, and snippets.

@ashishwadekar
Created December 24, 2018 18:25
Show Gist options
  • Save ashishwadekar/f637679c89a453d42a14af2c3dfa3662 to your computer and use it in GitHub Desktop.
Save ashishwadekar/f637679c89a453d42a14af2c3dfa3662 to your computer and use it in GitHub Desktop.
Sample User model for JWT with revocation strategy
class User < ApplicationRecord
devise :database_authenticatable, :jwt_authenticatable,
jwt_revocation_strategy: JwtBlacklist
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment