How do I create a plugin that adds a property to the client object?
Consider the
magic-link plugin. When we register it, we get access to client.magicLink.verify(). How do I create my own plugin that does so? I read the source code of this plugin but didn't find anything useful. Thanks.Solution
magic-link ->
magicLink, and verify is just verify, so together in the authClient it would be authClient.magicLink.verify