Articles tagged in: hapi



hapi — How to Fix “Unsupported Media Type”

The “unsupported media type“ error occurred while uploading a file to a hapi server. The file is an Excel sheet and at first, it seemed like the content type was the issue. But the problem was the multipart upload which comes with a straightforward fix! {{outline}} Fixing “Unsupported Media Type” …

Continue Reading

learn hapi — Bringing Back JWT Claims in the JWT Payload

The recent tutorials in this series on JSON web tokens introduced a handful of code changes. For example, you switched the packages creating JWTs from jsonwebtoken to node-jose to support encrypted and nested tokens. A downside of this switch: the JWT-related claims were added jsonwebtoken automatically when creating a new …

Continue Reading

learn hapi — What is JOSE in JWT

You may read the “JOSE” keyword when searching the Internet for details on JSON web tokens. Well, you’re likely to find “JOSE” in references to the JWT specification and not in actionable tutorials. What is JOSE in combination with JWT? That’s a good question! JWT defines the token …

Continue Reading
Page 1 of 17

Explore the Library

Find interesting tutorials and solutions for your problems.