Giter Site home page Giter Site logo

Comments (5)

luisrudge avatar luisrudge commented on July 16, 2024

Maybe it's the sample encoding tag? All the SDK does is relay the server information to you. If you inspect the requests int the dev tools, do you get the correct information?

from auth0-spa-js.

peterblazejewicz avatar peterblazejewicz commented on July 16, 2024

When I copy the returned id token to the debugger here: https://jwt.io, I'm seeing correctly decoded strings:

{
  "nickname": "peterblazejewicz",
  "name": "Piotr Błażejewicz (Peter Blazejewicz)",
  "picture": "https://avatars3.githubusercontent.com/u/14539?v=4",
  "updated_at": "2019-06-15T19:57:56.447Z",
  "email": "{{}}",
  "email_verified": true,
  "iss": "https://blazejewicz.eu.auth0.com/",
  "sub": "github|14539",
  "aud": "Yo9lLpD5iyVxJApE12HQX2FrN8W4PWZr",
  "iat": 1560628678,
  "exp": 1560664678,
  "nonce": "YqkOvc8n1XqH~NDBOOTydGGscuoLnvo1hTRC8Q.Cji1"
}

while auth0 client getUser returns:

email: "{{}}"
email_verified: true
name: "Piotr B�ażejewicz (Peter Blazejewicz)"
nickname: "peterblazejewicz"
picture: "https://avatars3.githubusercontent.com/u/14539?v=4"
sub: "github|14539"
updated_at: "2019-06-15T20:13:01.371Z"

I assume it's being decoded on the client using the library here. The page bears the UTF-8

from auth0-spa-js.

luisrudge avatar luisrudge commented on July 16, 2024

Thanks for the help and context, @peterblazejewicz. I opened a PR to fix this #28

from auth0-spa-js.

peterblazejewicz avatar peterblazejewicz commented on July 16, 2024

You're welcome!

from auth0-spa-js.

luisrudge avatar luisrudge commented on July 16, 2024

released in @auth0/[email protected] 🎉

from auth0-spa-js.

Related Issues (20)

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.