SHARING : netlify-auth-provider on localhost (ntl dev)

Hi, this is not a question but a sharing of my finding for netlify-auth-provider.
I strugled many hours trying to make work the sample on localhost as in
oauth-provider-tokens/#setup-and-settings

the javascript code needs to be changed :

var authenticator = new netlify.default ({});

must be

const authenticator = new netlify.default ({'site_id':'SITE-ID-HERE'});

SITE-ID-HERE is the netlify app site-id that can be found using

ntl status
1 Like

thank you for sharing this!