I was having some trouble with using @dfinity/auth-client when running with local dfx tool and then stumbled upon this repo. It seems I am having the same issue when running this example auth client implementation.
The following call fails with 403 response in this sample application:
const response = await actor.whoami();
Error:
Error: Server returned an error:
Code: 403 (Forbidden)
Body: Failed to authenticate request
I am wondering if there is something I am missing.
I was having some trouble with using
@dfinity/auth-client
when running with local dfx tool and then stumbled upon this repo. It seems I am having the same issue when running this example auth client implementation.The following call fails with 403 response in this sample application:
Error:
I am wondering if there is something I am missing.
Any help is greatly appreciated :)