diff --git a/providers/apple/session.go b/providers/apple/session.go index cd4958a80..8f03b5158 100644 --- a/providers/apple/session.go +++ b/providers/apple/session.go @@ -110,7 +110,7 @@ func (s *Session) Authorize(provider goth.Provider, params goth.Params) (string, if !found { return nil, errors.New("could not find matching public key") } - var pubKey *rsa.PublicKey + pubKey := &rsa.PublicKey{} err = selectedKey.Raw(pubKey) if err != nil { return nil, err