I am looking for something similair to noir-auth-app but made with hoplon.
Thanks!
You can look at some very basic authentication code in the castra-chat demo.
Authentication in Castra is done via annotations on the RPC endpoint functions. These annotations become assertions when the function is called as the endpoint of an RPC call, but not when called from the REPL or from another function. Think of it as a way to inject code into the function only when the function is being called by the client. This architecture has a few benefits: