Authentication with Figma
Typper Figma Plugin Deploy requires secure authentication with your Figma account. This guide explains how to properly set up your credentials.Authentication Requirements
To publish plugins to Figma, you need:- A Figma account with 2FA enabled
- Administrator permissions for the plugin
- Access to the team where the plugin is hosted
Setting up 2FA
1. Enable 2FA in Figma
If you haven’t enabled 2FA yet:- Access your Figma settings
- Go to the security section
- Enable two-factor authentication
- Important: During activation, save the TOTP secret code
If you already have 2FA enabled but didn’t save the TOTP secret code, you’ll
need to disable and re-enable 2FA to get a new code.
2. Obtain Required Credentials
You’ll need three pieces of information:- Figma account email
- Figma account password
- TOTP secret code (obtained during 2FA activation)
Configuring Secrets
In GitHub
- Go to your GitHub repository
- Navigate to Settings > Secrets and Variables > Actions
- Add the following secrets:
TOTP Secret Format
The TOTP code must be in base32 format. Example:The TOTP code is case-sensitive. Make sure to copy it exactly as provided by
Figma.
Security Best Practices
Dedicated Publishing Account
We strongly recommend creating a dedicated Figma account for plugin publishing. This approach:-
Enhanced Security
- Limits access to only plugin-related functionalities
- Reduces risk of compromising main company/team accounts
- Provides better control over publishing credentials
- Simplifies team member transitions
-
Account Setup
- Create a new Figma account with a company email
- Use a strong, unique password
- Enable two-factor authentication (required for plugin publishing)
- Store credentials in a secure password manager
-
Best Practices
- Use this account exclusively for plugin publishing
- Grant minimal necessary permissions
- Regularly rotate credentials
- Document access procedures securely
Store the dedicated account’s credentials using your organization’s secret
management system and never share them through unsecured channels.
General Security Guidelines
- Never share your credentials
- Don’t store credentials in repository files
- Regularly review repository access
- Monitor account activity regularly
Testing Authentication
To verify your credentials are configured correctly:- Make a test push to your configured workflow branch
- Check the logs in the Actions tab
- Look for any authentication-related error messages
Troubleshooting
Common Errors
Invalid Authentication Error
Invalid Authentication Error
- Verify email and password are correct - Confirm secrets were saved without extra spaces
Invalid TOTP Error
Invalid TOTP Error
- Check if TOTP code is in the correct format - Confirm the code was copied completely - Try disabling and re-enabling 2FA to get a new code
Permission Error
Permission Error
- Verify you have administrator permissions for the plugin - Confirm the plugin is in the correct team
Next Step
Learn how to configure your workflow to automate
deployments