Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
dagnelies committed Dec 29, 2022
1 parent 3425e3f commit 00df399
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@passwordless-id/connect",
"version": "1.1.0",
"version": "1.1.1",
"description": "A simple library to \"Sign in with passwordless.id\" and to fetch the user's profile and \"id_token\"",
"type": "module",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export async function request(options) {
* The signatue should be verified server side.
*/
function parseJwtPayload(jwt) {
const payload = json.id_token.split('.')[1]
const payload = jwt.id_token.split('.')[1]
const base64 = payload.replaceAll('-', '+').replaceAll('_', '/')
const buffer = Uint8Array.from(atob(base64), c => c.charCodeAt(0))
const utf8 = utf8decoder.decode(buffer)
Expand Down

0 comments on commit 00df399

Please sign in to comment.