Update OAuth2-Front-Approach.md
This commit is contained in:
parent
09d10f6fd4
commit
1e50fd8a0f
@ -112,7 +112,7 @@ const loginWithGoogle = () => {
|
||||
|
||||
<br>
|
||||
|
||||
#### 2.1 Frontend
|
||||
### 2.1 Frontend
|
||||
|
||||
Now that the frontend has the Authorization `code` on the callback url, it can send it to the backend
|
||||
|
||||
@ -174,7 +174,7 @@ export default Callback;
|
||||
|
||||
<br>
|
||||
|
||||
#### 2.2 Backend
|
||||
### 2.2 Backend
|
||||
|
||||
1. The Backend **receives** the authorization `code` form the Frontend POST at `xorismesiti.gr/api/auth/exchange-token`
|
||||
2. The Backend **POST** the Authorization `code` to Google API
|
||||
@ -277,7 +277,7 @@ app.listen(3000, () => {
|
||||
|
||||
<br>
|
||||
|
||||
#### 2.3 Front
|
||||
### 2.3 Front
|
||||
|
||||
The frontend gets the tokens from the backend response,
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user