You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2019. It is now read-only.
When I set the audience in authParams for an API, Passwordless Lock works correctly by returning the hash with a full JWT access_token. This now takes place of the previously opaque access_token and a JWT id_token.
However, when I use parseHash() to parse the response, it reports Cannot read property 'length' of undefined because it's apparently still trying to parse id_token (which is now absent).
This could be related to auth0/lock#530. Would it be possible to patch Passwordless Lock to fix this error? Otherwise, we have to decodeURIComponent directly for the time being (I'm using socialOrEmailcode so I have to parse hash manually instead of returning them to a callback). EDIT: we can also include auth0.min.js and use parseHash() from there (though that's still extra work).
Thanks
The text was updated successfully, but these errors were encountered:
Hi all,
When I set the
audience
inauthParams
for an API, Passwordless Lock works correctly by returning the hash with a full JWTaccess_token
. This now takes place of the previously opaqueaccess_token
and a JWTid_token
.However, when I use
parseHash()
to parse the response, it reportsCannot read property 'length' of undefined
because it's apparently still trying to parseid_token
(which is now absent).This could be related to auth0/lock#530. Would it be possible to patch Passwordless Lock to fix this error? Otherwise, we have to
decodeURIComponent
directly for the time being (I'm usingsocialOrEmailcode
so I have to parse hash manually instead of returning them to a callback). EDIT: we can also includeauth0.min.js
and useparseHash()
from there (though that's still extra work).Thanks
The text was updated successfully, but these errors were encountered: