A library for verify Apple ID token.
go get github.com/pikann/go-verify-apple-id-token
import "github.com/pikann/go-verify-apple-id-token/apple"
There is example file based on your particular use case which can be found below:
While it is recommended to look at the specific example file, here is validating an app token:
import "github.com/pikann/go-verify-apple-id-token/apple"
...
verifier := apple.NewAppleVerifier()
resp, err := verifier.VerifyAppleIdToken(
"token_test",
"client_id",
)
Van Hai Huynh - hvhai22@gmail.com
Project Link: https://github.com/pikann/go-verify-apple-id-token