Giter Site home page Giter Site logo

netlify-gotruejs-example-site's Introduction

GoTrue JS Examples

Hi there! This is my playground repo to test out Netlify’s GoTrue JS client library. You can see a live demo of the examples at link.

To run the examples locally, here’s what you’ll need:

System Requirements

Setup

git clone [email protected]:lunaceee/netlify-gotruejs-example-site.git
cd netlify-gotruejs-example-site.git
yarn

Running the examples

yarn start

Troubleshooting

If you want to run the examples against your own Identity instance, change the value of APIUrl in src/index.js to point to your own Netlify site URL.

After you do that, you might come across one of the following errors, like I did.

Error: Failed to load

Failed to load https://github.com/lunaceee/netlify-gotruejs-example-site/signup:
Response to preflight request doesn't pass access control check:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://localhost:8082' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

What this error can mean:

  • The URL in the APIUrl option is wrong. Solution: Look out for typos! APIUrl should look something like: https://{your-site-domain}/.netlify/identity
  • You haven’t enabled Identity in your Netlify site. Solution: Go to your Netlify dashboard and enable Identity for your site.

Error: Unable to locate site configuration

POST https://imorente-gotrue-examples.netlify.com/.netlify/identity/signup 404 ()
error :( Error: Unable to locate site configuration
  at main.js:1

What this error can mean:

  • Your Identity service hasn’t been detected yet. Solution: Trigger a new deploy from your Netlify dashboard (or push a change to your repository) to force a cache refresh in the Netlify origin server.

netlify-gotruejs-example-site's People

Contributors

dependabot[bot] avatar kyleblankrollins avatar lunaceee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

netlify-gotruejs-example-site's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.