You’ve probably seen it by now, but you may be wondering how you can actually use the Internet Identity in your own application. I’ve written up a post on how you can get started using the Internet Identity to make authenticated calls to your service, thanks to our @dfinity/auth-client package.
In my index page I’ve imported auth-client and set it up so it’s working locally (it should also work on the network) The Internet Identity page opens and does what it’s meant to do…
In handleAuthenticated I want to createActor, but with the Gatsby site its wired up differently to how I’ve seen other React examples, the Actor is imported in from the declarations in my Gatsby setup…
From what I’ve seen in other React examples, I need to send the identity as an argument in the options of createActor? I’m not sure how to do that with my setup?! Any tips greatly appreciated