{"id":19720765,"url":"https://github.com/ngthucdotcom/zalo-auth-sdk","last_synced_at":"2026-06-16T07:31:18.276Z","repository":{"id":110991434,"uuid":"586832410","full_name":"ngthucdotcom/zalo-auth-sdk","owner":"ngthucdotcom","description":"Standalone Zalo Auth SDK","archived":false,"fork":false,"pushed_at":"2023-03-31T08:31:36.000Z","size":324,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-23T07:03:05.497Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ngthucdotcom.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-09T10:38:43.000Z","updated_at":"2023-01-09T10:38:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"a4dac8d3-279a-409f-a6dd-51404f469dcf","html_url":"https://github.com/ngthucdotcom/zalo-auth-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"ngthucdotcom/sign-in-popup-flow","purl":"pkg:github/ngthucdotcom/zalo-auth-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthucdotcom%2Fzalo-auth-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthucdotcom%2Fzalo-auth-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthucdotcom%2Fzalo-auth-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthucdotcom%2Fzalo-auth-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngthucdotcom","download_url":"https://codeload.github.com/ngthucdotcom/zalo-auth-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthucdotcom%2Fzalo-auth-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34394376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-11T23:12:27.242Z","updated_at":"2026-06-16T07:31:18.253Z","avatar_url":"https://github.com/ngthucdotcom.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zalo Auth SDK using sign in with popup flow\n\n## Installation\n\n```bash\nnpm run install\n```\n\n## Running\n\n```bash\nnpm run start\n```\n\n## Flow\n\n* Step 1: User click on the button \"Sign in with Zalo\"\n\n* Step 2: The client app initialize environment, and call `login` function from `libs/zalo-auth-sdk.js`\n\n* Step 3: On then `zalo-auth-sdk.js`, a function `login` is called. It build the url of the auth host, and open a popup\n  window with the url.\n\n* Step 4: The popup window is opened on client side, and the user will input his/her credentials to sign in.\n\n* Step 5: After the user sign in, auth host will validate the app registration, user credentials, and create a token for\n  the client app with user's information. Then, the auth host will redirect the popup window to the client app with the\n  token.\n\n* Step 6: The `zalo-auth-sdk.js` will listen to the event from the popup window, process some logic to get the token, and\n  close the popup window.\n\n* Step 7: The client app will receive the token from the `zalo-auth-sdk.js`, and store it in the local storage. If have any\n  problem, the client app will show the error message.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngthucdotcom%2Fzalo-auth-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngthucdotcom%2Fzalo-auth-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngthucdotcom%2Fzalo-auth-sdk/lists"}