private suspend fun verifyToken(token: String): GropiusUser

Verifies a jwt and returns the GropiusUser defined by the id in subject

Return

the user defined by the id in subject

Parameters

token

the jwt, possibly starting with "Bearer "

Throws

if the user does not exist or if the jwt is invalid