Skip to content

Don't require `TokenVerifier` to know the format of tokens

Jamie Tanna requested to merge refactor/token-adapter into develop

Currently, the TokenVerifier is returning a SignedJWT when verified.

This doesn't make sense, though, as only the current implementation is using JWTs.

This instead uses a TokenAdapter class which provides a mapping from the current implementation (JWTs) and a generic type that can be used elsewhere.

This has the benefit of making our TokenService really nice and implementation-agnostic, which is what we want!

Edited by Jamie Tanna

Merge request reports