Authentication with fastapi and jwt
cd realistic

Dependencies

  • bcrypt==3.1.7
  • databases==0.5.3
  • fastapi==0.68.0
  • Hypercorn==0.11.2
  • jose==1.0.0
  • pydantic==1.8.2
  • python-jose==3.3.0
  • python-multipart==0.0.5
  • SQLAlchemy==1.4.20
  • starlette==0.14.2
  • uvicorn==0.15.0

run command

uvicorn main:api

Screens

Add new user

Add new user

Response status

Response status

Authentication

Authentication

Response jwt and type

Response jwt and type

View current user with header {“Authentication”:”Bearer [token]”}

 view current user with header {"Authentication":"Bearer [token]"}

Response

Response

GitHub

View Github