Versions in this module Expand all Collapse all v0 v0.1.0 May 26, 2021 Changes in this version + var ErrorResponseInvalidClient = ErrorResponse + var ErrorResponseInvalidGrant = ErrorResponse + var ErrorResponseInvalidRequest = ErrorResponse + var ErrorResponseInvalidScope = ErrorResponse + var ErrorResponseTypeInvalidClient ErrorResponseType = "invalid_client" + var ErrorResponseTypeInvalidGrant ErrorResponseType = "invalid_grant" + var ErrorResponseTypeInvalidRequest ErrorResponseType = "invalid_request" + var ErrorResponseTypeInvalidScope ErrorResponseType = "invalid_scope" + var ErrorResponseTypeUnauthorizedClient ErrorResponseType = "unauthorized_client" + var ErrorResponseTypeUnsupportedGrantType ErrorResponseType = "unsupported_grant_type" + var ErrorResponseUnauthorizedClient = ErrorResponse + var ErrorResponseUnsupportedGrantType = ErrorResponse + func New(appID, teamID, keyID, keyPath string) (*appleAuth, error) + type AppleAuth interface + ValidateCode func(code string) (*TokenResponse, error) + ValidateCodeWithRedirectURI func(code, redirectURI string) (*TokenResponse, error) + ValidateRefreshToken func(refreshToken string) (*TokenResponse, error) + type AppleUser struct + Email string + EmailVerified bool + IsPrivateEmail bool + RealUserStatus RealUserStatus + UID string + func GetUserInfoFromIDToken(idToken string) (*AppleUser, error) + type ErrorResponse struct + Message string + Type ErrorResponseType + func (e ErrorResponse) Error() string + type ErrorResponseType string + type RealUserStatus int + var RealUserStatusLikelyReal RealUserStatus = 2 + var RealUserStatusUnknown RealUserStatus = 1 + var RealUserStatusUnsupported RealUserStatus = 0 + type TokenResponse struct + AccessToken string + ExpiresIn int + IDToken string + RefreshToken string + TokenType string