As per #535, it introduced a new function utils.FetchIdFromSignedUserToken() which has some amount of duplicate code compared to say utils.ExtractFieldFromJWT(). The main differences include it casting to a string rather than a []string.
Question to ask is it worth the effort of reducing duplication for this small amount of code?
As per #535, it introduced a new function
utils.FetchIdFromSignedUserToken()
which has some amount of duplicate code compared to sayutils.ExtractFieldFromJWT()
. The main differences include it casting to astring
rather than a[]string
.Question to ask is it worth the effort of reducing duplication for this small amount of code?