Generate and validate tokens | Apple Developer Documentation
Validate an authorization grant code delivered to your app to obtain tokens, or validate an existing refresh token.