This commit is contained in:
xie7654
2025-06-29 21:45:27 +08:00
commit f6e68e37c8
1539 changed files with 129319 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
from rest_framework.authentication import TokenAuthentication
class BearerTokenAuthentication(TokenAuthentication):
"""
使用 'Bearer' 前缀的 Token 认证
"""
keyword = 'Bearer'