We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hms-push-serverdemo-go/src/push/authention/auth.go
Line 41 in 5c37e3e
Docs: https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/open-platform-oauth-0000001053629189#EN-US_TOPIC_0000001053629189__section12493191334711
The text was updated successfully, but these errors were encountered:
You can use embedded structures for response too
type authResponse struct { authInfo authError } type authInfo struct { AccessToken string `json:"access_token"` ExpiresIn int `json:"expires_in"` TokenType string `json:"token_type"` } type authError struct { SubError int `json:"sub_error"` Error int `json:"error"` ErrorDescription string `json:"error_description"` }
it's a good practice
Sorry, something went wrong.
No branches or pull requests
hms-push-serverdemo-go/src/push/authention/auth.go
Line 41 in 5c37e3e
Docs:
https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/open-platform-oauth-0000001053629189#EN-US_TOPIC_0000001053629189__section12493191334711
The text was updated successfully, but these errors were encountered: