I’m using the book OAuth in Action by Justin Richer and Antonio Sanso, to guide implementation of an authorization server using a pico and, of course, KRL. This is a bit more involved than the OAuth client, and involves several if-then-else chains.
Conditionals are different in KRL compared to other languages. Each event triggers one or more rules, which are evaluated in order. Each KRL rule implements an event-condition-action pattern (ECA).