bynk.actor.oidc_not_in_sum
Error An Oidc actor appears as a member of a multi-actor sum.
A multi-actor by clause tries its peers in turn on a request it reads once. An Oidc actor must first fetch the provider's keys, which that path does not yet support, so an Oidc actor stands alone on its route. Give the route a single by who: Member, and serve any anonymous route separately.
Example
type UserId = String where NonEmptyactor Member { auth = Oidc(issuer = "https://issuer.example", audience = "my-api", jwks = "https://issuer.example/jwks"), identity = UserId }
service api from http { on POST("/x") () -> Effect[HttpResult[String]] by who: Member | Visitor { // ✗ an `Oidc` peer in a sum
service api from http { on POST("/x") () -> Effect[HttpResult[String]] by who: Member { // ✓ aloneIn the Book
See also
- Every code in its category, Actors, on the diagnostic index.
bynk explain bynk.actor.oidc_not_in_sumshows the same from the installed toolchain, without a network.