-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
while signing out, the session entry from allowlisted_jwts table is supposed to be deleted via call to revoke_jwt method in the module, its fetching the session record fine but gives this error ERROR: column allowlisted_jwts.allowlisted_jwt_id does not exist (PG::UndefinedColumn) on attempting delete
# @see Warden::JWTAuth::Interfaces::RevocationStrategy#revoke_jwt
def self.revoke_jwt(payload, user)
jwt = user.allowlisted_jwts.find_by({"jti"=>payload['jti'], "aud"=>payload['aud'].presence || 'UNKNOWN'})
jwt.destroy! if jwt
end
Its looking for non existent allowlisted_jwt_id column in allowlisted_jwts table.
Metadata
Metadata
Assignees
Labels
No labels
