Skip to content

Commit

Permalink
fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
marcvs committed Dec 5, 2023
1 parent 260f18a commit 71f76e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flaat/user_infos.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from json import JSONEncoder
import logging
from time import time
from typing import Any, Optional

Expand Down Expand Up @@ -82,12 +82,12 @@ def _timeleft(info_dict, claim="exp") -> Optional[int]:
@property
def issuer(self) -> str:
"""The issuer of the access token"""
return self.get("iss", "")
return str(self.get("iss", ""))

@property
def subject(self) -> str:
"""The users subject at the issuer"""
return self.get("sub", "")
return str(self.get("sub", ""))

# make the UserInfos act like a dictionary with regard to claims
def __getitem__(self, key):
Expand Down

0 comments on commit 71f76e3

Please sign in to comment.