Authentication with social networks, information about the user
- Apple
- VK
import "github.com/rosberry/auth"
ud, err := auth.Auth(googleToken, auth.AuthTypeGoogle)
OR if you want check token audience:
import "github.com/rosberry/auth"
ud, err := auth.AuthWithCheckAUD(googleToken, audience, auth.AuthTypeGoogle)
Apple, Google: JWT token (id_token)
Facebook, VK: access_token
UserDetails struct {
ID string
FirstName string
LastName string
UserName string
Email string
Picture string
}
- VK don't sent email in user information
- Apple don't include username (firstname and lastname) in JWT token
This project is owned and maintained by Rosberry. We build mobile apps for users worldwide ๐.
Check out our open source projects, read our blog or give us a high-five on ๐ฆ @rosberryapps.
This project is available under the MIT license. See the LICENSE file for more info.