Pudu programming language
Menu

Std.App.Jwt.tokenKeyId

1 declaration

fn

tokenKeyId: Str -> Option[Str]

This is a callable function.

What it does

Which of a provider's keys a token says signed it.

Read before verifying, so a caller holding several keys picks the one to

check against. A token that names no key answers nothing, and a caller must

then decide for itself rather than being given a guess.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.
  • Names inside [ ] are type arguments, such as the item type held by a collection.
  • Option holds Some(value) or None when no value is available.

Back to Std.App.JwtSearch related declarations