Skip to content

Commit

Permalink
chore(backend): force token expire
Browse files Browse the repository at this point in the history
Signed-off-by: Thibault Camalon <[email protected]>
  • Loading branch information
thbcmlowk committed Aug 5, 2024
1 parent 1526435 commit e592fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/users/serializers/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class BearerTokenSerializer(serializers.ModelSerializer):
expires_at = serializers.DateTimeField(default_timezone=timezone.utc, allow_null=True)
expires_at = serializers.DateTimeField(default_timezone=timezone.utc, allow_null=False)
created_at = serializers.DateTimeField(default_timezone=timezone.utc, source="created", read_only=True)
token = serializers.CharField(source="key", read_only=True)

Expand Down

0 comments on commit e592fc6

Please sign in to comment.