Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token error #4

Open
hIASL99 opened this issue Dec 5, 2023 · 2 comments
Open

Token error #4

hIASL99 opened this issue Dec 5, 2023 · 2 comments

Comments

@hIASL99
Copy link

hIASL99 commented Dec 5, 2023

When trying to use the interceptor with a token request an error occurs while deserialization.

@hIASL99 hIASL99 mentioned this issue Dec 5, 2023
@JeremyMahieu
Copy link
Owner

Thanks, can you paste the error text?

@hIASL99
Copy link
Author

hIASL99 commented Dec 6, 2023

The error occurs when i try to get a token and its not a valid JSON:

SyntaxError: Unexpected token 'e', "eyJhbGciOi"... is not valid JSON
at JSON.parse ()
at Function.resolveReferences (refs.interceptor.js:49:25)
at refs.interceptor.js:109:43
at map.js:10:37
at OperatorSubscriber._this._next (OperatorSubscriber.js:33:21)
at Subscriber.next (Subscriber.js:51:18)
at SafeSubscriber.__tryOrUnsub (Subscriber.js:183:16)
at SafeSubscriber.next (Subscriber.js:122:22)
at Subscriber._next (Subscriber.js:72:26)
at Subscriber.next (Subscriber.js:49:18)

hIASL99 pushed a commit to hIASL99/angular-json-refs-interceptor that referenced this issue Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants