feat: ✨ token permission
This commit is contained in:
parent
b90fa4ae3c
commit
f9683d202f
3 changed files with 18 additions and 1 deletions
|
@ -9,3 +9,8 @@ class UserViewSet(ReadOnlyModelViewSet):
|
|||
queryset = UserToken.objects.all()
|
||||
serializer_class = UserTokenSerializer
|
||||
# permission_classes = [IsAuthenticatedOrReadOnly]
|
||||
|
||||
|
||||
class TokenValidation:
|
||||
def check_token(value):
|
||||
return UserToken.objects.filter(token=value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue