Step 3: OAuth App Publishing Flow
Deep-dive reference for the figma-upgrade-migration skill — extracted from the 'Step 3: OAuth App Publishing Flow' step of the workflow.
All OAuth apps (public and private) must complete the new publishing flow:
- Go to your app in the Figma developer dashboard
- Complete the required app information fields
- Add required redirect URLs
- Submit for review (public apps) or activate (private apps)
- Update your code to handle the new token format
// Check if your OAuth tokens need refresh
async function checkTokenHealth(accessToken: string): Promise<boolean> {
const res = await fetch('https://api.figma.com/v1/me', {
headers: { 'X-Figma-Token': accessToken },
});
if (res.status === 403) {
console.warn('Token expired or revoked -- refresh needed');
return false;
}
return res.ok;
}