Created
December 24, 2018 18:25
-
-
Save ashishwadekar/f637679c89a453d42a14af2c3dfa3662 to your computer and use it in GitHub Desktop.
Sample User model for JWT with revocation strategy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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