This page explains how to use the GDPlatform OAuth system with SkunkPlatform. For security reasons, OAuth login cannot be tested directly on this website.
To test OAuth authentication, you must run the code on your own website or development environment.
Official documentation:
https://gdplatform.netlify.app/docs
const url = generateUrlOAuth(
CLIENT_ID,
REDIRECT_URI,
"account_id,profile"
);
window.location.href = url;
After redirect, validate the code:
const user = await validateOAuthCode(
code,
["account_id","profile"]
);
console.log(user);
Remember to replace CLIENT_ID and REDIRECT_URI with your own application credentials.