{"id":22353712,"url":"https://github.com/rosberry/auth","last_synced_at":"2025-03-26T12:27:49.137Z","repository":{"id":64302184,"uuid":"294010974","full_name":"rosberry/auth","owner":"rosberry","description":"Authentication with social networks","archived":false,"fork":false,"pushed_at":"2021-11-29T09:40:47.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T13:42:54.375Z","etag":null,"topics":["golang","library"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rosberry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-09T05:23:15.000Z","updated_at":"2022-10-17T02:25:15.000Z","dependencies_parsed_at":"2023-01-15T09:45:26.291Z","dependency_job_id":null,"html_url":"https://github.com/rosberry/auth","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosberry%2Fauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosberry%2Fauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosberry%2Fauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosberry%2Fauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rosberry","download_url":"https://codeload.github.com/rosberry/auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245652684,"owners_count":20650538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","library"],"created_at":"2024-12-04T13:09:33.038Z","updated_at":"2025-03-26T12:27:49.117Z","avatar_url":"https://github.com/rosberry.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auth\n\nAuthentication with social networks, information about the user\n\n## Supported:\n- Apple\n- Google\n- Facebook\n- VK\n\n\n## Usage\n### Input: token and auth type\n```golang\nimport \"github.com/rosberry/auth\"\n\nud, err := auth.Auth(googleToken, auth.AuthTypeGoogle)\n```\n\nOR if you want check token audience:\n```golang\nimport \"github.com/rosberry/auth\"\n\nud, err := auth.AuthWithCheckAUD(googleToken, audience, auth.AuthTypeGoogle)\n```\n\nApple, Google: ```JWT token (id_token)```\nFacebook, VK: ```access_token```\n\n### Result: user details\n```golang\nUserDetails struct {\n\t\tID        string\n\t\tFirstName string\n\t\tLastName  string\n\t\tUserName  string\n\t\tEmail     string\n\t\tPicture   string\n    }\n```\n\n### Important\n- VK don't sent email in user information\n- Apple don't include username (firstname and lastname) in JWT token\n\n\n## About\n\n\u003cimg src=\"https://github.com/rosberry/Foundation/blob/master/Assets/full_logo.png?raw=true\" height=\"100\" /\u003e\n\nThis project is owned and maintained by [Rosberry](http://rosberry.com). We build mobile apps for users worldwide 🌏.\n\nCheck out our [open source projects](https://github.com/rosberry), read [our blog](https://medium.com/@Rosberry) or give us a high-five on 🐦 [@rosberryapps](http://twitter.com/RosberryApps).\n\n## License\n\nThis project is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosberry%2Fauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frosberry%2Fauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosberry%2Fauth/lists"}