Giter Site home page Giter Site logo

Comments (6)

Yakimych avatar Yakimych commented on September 23, 2024 1

Oh, right - I was hoping roles would be an empty array. Not sure about app_metadata - the netlify docs seem to be a bit shallow on this. I guess the safest way is to have option for both.

from bs-react-netlify-identity.

MargaretKrutikova avatar MargaretKrutikova commented on September 23, 2024 1

Great, then we are good to go. Will publish a new version shortly 😄

from bs-react-netlify-identity.

MargaretKrutikova avatar MargaretKrutikova commented on September 23, 2024

I have added those bindings in appMetaData to the user object, could you try the branch app-metadata and see whether it works for your setup?

from bs-react-netlify-identity.

Yakimych avatar Yakimych commented on September 23, 2024

Works great, thanks!

Just wondering - do app_metadata and roles have to be options? I guess it's the safest way, since the TS definitions say any?

from bs-react-netlify-identity.

MargaretKrutikova avatar MargaretKrutikova commented on September 23, 2024

Roles property must be optional, since it won’t exist on the metadata object if you don’t have any roles in netlify.

I am not sure whether the whole “app_metadata” has to be optional though, is there anything in the netlify docs indicating that it should never be undefined on the JS side?

from bs-react-netlify-identity.

MargaretKrutikova avatar MargaretKrutikova commented on September 23, 2024

Published in v1.0.4.

from bs-react-netlify-identity.

Related Issues (3)

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.