diff --git a/providers/apple/session.go b/providers/apple/session.go
index <HASH>..<HASH> 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
Fix bug with pointer

Fix nil pointer issue

Fix nil pointer issue