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

JWT malformed error on payments/alpha #958

Open
dxphilo opened this issue Jun 16, 2022 · 5 comments
Open

JWT malformed error on payments/alpha #958

dxphilo opened this issue Jun 16, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@dxphilo
Copy link
Contributor

dxphilo commented Jun 16, 2022

WhatsApp Image 2022-06-16 at 12 14 04 PM (2)

@dxphilo
Copy link
Contributor Author

dxphilo commented Jun 16, 2022

Also noticed when opening premium posts in Safari.
WhatsApp Image 2022-06-16 at 4 18 44 PM

@tess3
Copy link

tess3 commented Jun 16, 2022

safari desktop, not logged in while trying to access premium posts
Screen Shot 2022-06-16 at 6 07 47 PM

@ashutosh1206 ashutosh1206 self-assigned this Jun 17, 2022
@ashutosh1206 ashutosh1206 added the bug Something isn't working label Jun 17, 2022
@ashutosh1206
Copy link
Contributor

@tess3 @developerphilo can you check if the face the same issue on blogchain.app instead of payments.capsule.social?

@ashutosh1206
Copy link
Contributor

From what I understood, this is an issue only specific to payments.capsule.social and alpha.capsule.social because these are protected by basic authorisation. The username/password is sent in Basic authorisation header, we also use the same header for sending our JWT. I think this is why we see those "jwt malformed" error from capsule-server. I was able to trigger the same error on Chrome as well today

@chrispanag
Copy link
Contributor

was searching this a lot today. On thing we could do is just change the header we use to get the auth token. imo apart from keeping it away from the "standard" there's no actual difference if we use for example the: X-Authorization or X-Access-Token header for our auth.

Unfortunately though we can't change the basic authentication header.

@ashutosh1206 ashutosh1206 changed the title JWT malformed error when paying for subscription in Safari mobile Devices. JWT malformed error on payments/alpha Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants