netlify / netlify-auth-providers Goto Github PK
View Code? Open in Web Editor NEWJS library to use Netlify's OAuth providers
JS library to use Netlify's OAuth providers
Hey, there's a special case where the auth is failing for me: using subdomains on localhost.
For example I use: http://gitlab.localhost:3000 in this PR.
There are a few places where you compare the location.hostname
with "localhost"
, it fails when hostanme
is something like foo.localhost
. Maybe you can compare it with location.hostname.split('.').pop()
.
I made a testing app based on the old auth provider docs with a basic script tag linking to this new script via unpkg.com. Loading the site, the script appears to load properly, but returns an Uncaught Reference Error: exports is not defined.
My 'app' code is here: https://github.com/verythorough/netlify-auth-demo/blob/master/index.html
The linked site is here: http://auth-demo.netlify.com/
Seems this is not maintained aynmore, as mentioned in #5.
"Authentication providers" doc page still links to netlify-demo-example as an examaple, which is still using this (netlify-auth-providers
) package.
It would be nice if docs were updated to what's curently oficially supported library and example for that.
I see that https://github.com/netlify/gotrue-js is listed as alternative, but can't find how to implement OAauth provider flow there. I'm aware this is (probably) a separate issue, but still, if that's an alternative, I'd expect support for OAuth too.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.