{"id":22558488,"url":"https://github.com/authgear/authgear-example-spa-js","last_synced_at":"2026-02-14T08:32:44.673Z","repository":{"id":266281942,"uuid":"673304614","full_name":"authgear/authgear-example-spa-js","owner":"authgear","description":" Authgear sample for SPA (Single Page App)","archived":false,"fork":false,"pushed_at":"2025-04-04T04:27:28.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-04T19:32:10.967Z","etag":null,"topics":["authentication","authgear","css","html","javascript","sdk","spa"],"latest_commit_sha":null,"homepage":"https://www.authgear.com/post/add-authentication-to-any-web-page-in-10-minutes","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/authgear.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-01T10:29:33.000Z","updated_at":"2025-04-04T04:27:32.000Z","dependencies_parsed_at":"2024-12-03T14:18:56.421Z","dependency_job_id":"82174480-e991-4723-a22d-42731660df7e","html_url":"https://github.com/authgear/authgear-example-spa-js","commit_stats":null,"previous_names":["authgear/authgear-example-spa-js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/authgear/authgear-example-spa-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/authgear%2Fauthgear-example-spa-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/authgear%2Fauthgear-example-spa-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/authgear%2Fauthgear-example-spa-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/authgear%2Fauthgear-example-spa-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/authgear","download_url":"https://codeload.github.com/authgear/authgear-example-spa-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/authgear%2Fauthgear-example-spa-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29440408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T07:24:13.446Z","status":"ssl_error","status_checked_at":"2026-02-14T07:23:58.969Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["authentication","authgear","css","html","javascript","sdk","spa"],"created_at":"2024-12-07T20:15:48.428Z","updated_at":"2026-02-14T08:32:44.657Z","avatar_url":"https://github.com/authgear.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authgear sample for SPA (Single Page App)\n\nThis repo demonstrates how to add authentication into any JavaScript apps using Authgear.\n\n## Project setup\n\n1. Run `npm install` to install project dependencies. \n2. Next, run `npm run dev` to start the application using `nodemon`, monitoring for changes as we modify files.\n\n### Create Free Authgear Account\n1. Goto [https://portal.authgear.com](https://portal.authgear.com) and create a free account (or login to your existing account).\n\n2. Then navigate to Applications and create a new client application of type Single Page Application.\n\n### Configuration\n\nThe project needs to be configured with your Authgear app's Endpoint and client ID in order for the authentication flow to work.\n\nTo do this, in `public/app.js`, replace these values with with your own Authgear application credentials:\n\n```javascript\nconst AUTHGEAR_CLIENT_ID = \"\u003cCLIENT_ID\u003e\";\nconst AUTHGEAR_ENDPOINT = \"\u003cAUTHGEAR_ENDPOINT\u003e\";\n```\n\nEnsure that you add `http://localhost:3000/` as an Authorized Redirect URI in your Authgear Client Application.\n\n## What is Authgear?\n\n[Authgear](https://www.authgear.com/) is a highly adaptable identity-as-a-service (IDaaS) platform for web and mobile applications.\nAuthgear makes user authentication easier and faster to implement by integrating it into various types of applications - from single-page web apps to mobile applications to API services.\n\n### Key Features\n\n- Zero trust authentication architecture with [OpenID Connect](https://openid.net/developers/how-connect-works/) (OIDC) standard.\n- Easy-to-use interfaces for user registration and login, including email, phone, username as login ID, and password, OTP, magic links, etc for authentication.\n- Support a wide range of identity providers, such as [Google](https://developers.google.com/identity), [Apple](https://support.apple.com/en-gb/guide/deployment/depa64848f3a/web), and [Azure Active Directory](https://azure.microsoft.com/en-gb/products/active-directory/) (AD).\n- Support biometric login on mobile, Passkeys, and Multi-Factor Authentication (MFA) such as SMS/email-based verification and authenticator apps with TOTP.\n\n## Documentation\n\nView other Authgear Documentation at [https://docs.authgear.com/](https://docs.authgear.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauthgear%2Fauthgear-example-spa-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fauthgear%2Fauthgear-example-spa-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauthgear%2Fauthgear-example-spa-js/lists"}