Gregniuki commited on
Commit
a40b741
·
1 Parent(s): 2a3fa0d

Update auth.py

Browse files
Files changed (1) hide show
  1. auth.py +1 -1
auth.py CHANGED
@@ -19,7 +19,7 @@ class AuthViews:
19
  self.SECRET_KEY = yoursecretkey # Replace with your actual secret key
20
  self.ALGORITHM = "HS256"
21
  self.ACCESS_TOKEN_EXPIRE_MINUTES = 30
22
- def create_access_token(self, data: dict, expires_delta: timedelta):
23
  to_encode = data.copy()
24
  expire = datetime.utcnow() + expires_delta
25
  to_encode.update({"exp": expire})
 
19
  self.SECRET_KEY = yoursecretkey # Replace with your actual secret key
20
  self.ALGORITHM = "HS256"
21
  self.ACCESS_TOKEN_EXPIRE_MINUTES = 30
22
+ def create_access_token(self, data: dict, expires_delta: timedelta):
23
  to_encode = data.copy()
24
  expire = datetime.utcnow() + expires_delta
25
  to_encode.update({"exp": expire})