Skip to content

Commit

Permalink
chore: deploy test
Browse files Browse the repository at this point in the history
  • Loading branch information
yaongmeow committed Jun 10, 2024
1 parent 8028606 commit ddb8b1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ jobs:
-d -p ${{secrets.EXTERNAL_PORT}}:${{secrets.INTERNAL_PORT}} \
-v /root/logs:/workspace/logs \
--name skkuse-container yaongmeow/skkuse-docker \
uvicorn main:app --host=0.0.0.0 --port=${{secrets.INTERNAL_PORT}}
uvicorn main:app --host=0.0.0.0 --port=${{secrets.INTERNAL_PORT}} --reload
4 changes: 3 additions & 1 deletion BE/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
from models import UserTokenInfo
import jwt

def jwt_decoder(token: str, key: str):
def jwt_decoder(token: str, key):
secret_key = key
print(f"Secret Key: {secret_key} (Type: {type(secret_key)})")
try:
payload = jwt.decode(token, key, algorithms=['HS256'])
print(payload)
Expand Down

0 comments on commit ddb8b1f

Please sign in to comment.