From cfda9d6cd15763e65fa851d964033e37f377239c Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 18 Apr 2024 20:15:25 +0300 Subject: Define and register grant for JWT tokens. --- gn_auth/auth/authentication/users.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gn_auth/auth/authentication/users.py') diff --git a/gn_auth/auth/authentication/users.py b/gn_auth/auth/authentication/users.py index cb6a68e..1f364b8 100644 --- a/gn_auth/auth/authentication/users.py +++ b/gn_auth/auth/authentication/users.py @@ -17,6 +17,10 @@ class User: email: str name: str + def get_user_id(self): + """Get the user's ID.""" + return self.user_id + DUMMY_USER = User(user_id=UUID("a391cf60-e8b7-4294-bd22-ddbbda4b3530"), email="gn3@dummy.user", -- cgit v1.2.3