abersheeran / asgi-ratelimit

A ASGI Middleware to rate limit
Apache License 2.0
302 stars 13 forks source link

customize user and group key #40

Closed ponytailer closed 2 years ago

ponytailer commented 2 years ago

maybe can direct the user and group in header or session

def create_jwt_token(key, alg, user_key="user", group_key="group"):
       pass
abersheeran commented 2 years ago

Good idea.