When I Google “swift authorization services example” I get https://github.com/trilemma-dev/SwiftAuthorizationSample which looks promising to me.
It’s MIT licensed, doesn’t look very old (last commit was 9 months ago), and seems to mention a good list of gotchas in https://github.com/trilemma-dev/SwiftAuthorizationSample#ins....