post__auth_google_exchange
TypeScript Client Library
private exchangeGoogleCode = async (code: string): Promise<OAuth2ResponseDTO> => {
return this.makeRequest<OAuth2ResponseDTO>('auth/google/exchange', 'POST', { code });
};Code Samples
# You can also use wget
curl -X POST https://backend.flashback.tech/auth/google/exchange \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'POST https://backend.flashback.tech/auth/google/exchange HTTP/1.1
Host: localhost:3000
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"code": "4/0AfJohXn..."
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('https://backend.flashback.tech/auth/google/exchange',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});Name
In
Type
Required
Description
Status
Meaning
Description
Schema
Name
Type
Required
Restrictions
Description
Last updated
Was this helpful?