def auds
import bend-kit-jwt@0.11.0.1/jwt.bend as Jwtimport Base
333# RFC 7519 §4.1.3: aud is one string or an array of them.
334def auds(m: Maybe<&2, Lit>) -> Result<&1, &1, Err, Maybe<&2, List<&2, String>>>:
335 match m:
336 case None{}:
337 Done{None{}}
338 case Some{LStr{s}}:
339 Done{Some{[s]}}
340 case Some{LStrs{Some{xs}}}:
341 Done{Some{xs}}
342 case Some{_}:
343 Fail{BadClaim{}}