Update OAuth2.md

This commit is contained in:
Ste Vaidis 2025-01-13 08:54:53 +02:00
parent 995c1c054d
commit e6eac2fc60

View File

@ -25,7 +25,7 @@ A way for the `user` to tell `google` to give an access to `myapp` app
#### ⭐️ 2. Exchange Code with Token #### ⭐️ 2. Exchange Code with Token
1. Backend **POST** the `authorization code` to Google 1. Backend **POST** the `authorization code` to Google
2. Google **Response** to Backend with an `access_token` and a `refresh token` 2. Google **Response** to Backend with an `access_token`
3. Backend **Redirect** to Frontend with the `access_token` in a `cookie` 3. Backend **Redirect** to Frontend with the `access_token` in a `cookie`
#### ⭐️ 3. Use Token #### ⭐️ 3. Use Token