aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authentication/users.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-04-18 20:15:25 +0300
committerFrederick Muriuki Muriithi2024-04-20 15:28:59 +0300
commitcfda9d6cd15763e65fa851d964033e37f377239c (patch)
tree23e0dac4c1e7ab62a21fadac7b82a2d418373d29 /gn_auth/auth/authentication/users.py
parentd9b8b05a460535dfb09168d1958c047255ff0fa2 (diff)
downloadgn-auth-cfda9d6cd15763e65fa851d964033e37f377239c.tar.gz
Define and register grant for JWT tokens.
Diffstat (limited to 'gn_auth/auth/authentication/users.py')
-rw-r--r--gn_auth/auth/authentication/users.py4
1 files changed, 4 insertions, 0 deletions
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",