Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
Allow different API key lengths in Netlify export
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixHenninger committed Sep 30, 2020
1 parent 58b5494 commit 8a50298
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import exportStaticNetlify from '../../../../logic/io/export/modifiers/netlify'
const validateApiKey = value => {
if (!value) {
return 'We\'ll need a API key to upload the study'
} else if (value.length !== 64) {
return 'The keys are typically 64 characters long'
} else if (![64, 43].includes(value.length)) {
return 'The keys are typically 43 or 64 characters long'
}
}

Expand Down

0 comments on commit 8a50298

Please sign in to comment.