filmov
tv
FastAPI (Python Framework) - Authentication APIs (Register, GET Token, Refresh Token, User Details)
Показать описание
FastAPI is one of fastest Python framework for API development. It is not only fast in terms of performance, but it is sure and have easy to learn . Now days with the evolution of AI and ML, this is the most favourable framework for API development.
In this video tutorial you will learn how to create -
- how to configure MySQL in FastAPI
- how to configure connection pooling using SQLAlchemy
- User registration api
- JWT token (login api) api
- Refresh token api
- get authenticated user details api
Note: For the simplicity, refresh_token contains the same payload data as the access token, so it is possible to get the user details using the refresh_token too.
In a real world application you should make the following changes -
- Add a TTL (Time to Live) in the refresh_token
- Add different payload in the refresh_token and make sure payload information is unique for every refresh_token.
Additionally you will also learn how you can organise your project files and folders.
In this video tutorial you will learn how to create -
- how to configure MySQL in FastAPI
- how to configure connection pooling using SQLAlchemy
- User registration api
- JWT token (login api) api
- Refresh token api
- get authenticated user details api
Note: For the simplicity, refresh_token contains the same payload data as the access token, so it is possible to get the user details using the refresh_token too.
In a real world application you should make the following changes -
- Add a TTL (Time to Live) in the refresh_token
- Add different payload in the refresh_token and make sure payload information is unique for every refresh_token.
Additionally you will also learn how you can organise your project files and folders.
Комментарии