Skip to content

Commit

Permalink
feat: enable self-hosted Figma oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
gumptious committed Oct 13, 2021
1 parent 2d25fd4 commit 9621235
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class Library extends React.Component {
this.props.createNotice({
type: 'danger',
title: 'Error',
message: 'There was an error while authenticating with Figma',
message: 'You must host your own Figma authentication service to use the Figma integration. See: github.com/HaikuTeam/figma-auth',
});
});
}
Expand Down
2 changes: 1 addition & 1 deletion packages/haiku-serialization/src/bll/Figma.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const {sanitize} = require('../utils/fileManipulation');

const API_BASE = 'https://api.figma.com/v1/';
const FIGMA_URL = 'https://www.figma.com/';
const FIGMA_CLIENT_ID = 'tmhDo4V12I3fEiQ9OG8EHh';
const FIGMA_CLIENT_ID = process.env.FIGMA_CLIENT_ID || 'tmhDo4V12I3fEiQ9OG8EHh';
const IS_FIGMA_FILE_RE = /\.figma$/;
const IS_FIGMA_FOLDER_RE = /\.figma\.contents/;
const FIGMA_DEFAULT_FILENAME = 'Untitled';
Expand Down

0 comments on commit 9621235

Please sign in to comment.