Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(err, data: INetlifyResponse) => {
if (err) {
alert('Could not authenticate. Try again later.')
return console.error(err)
}
writeStorage(GITHUB_TOKEN_KEY, data.token)
}
)