{"id":30666804,"url":"https://github.com/mojoauth/mojoauth-netlify-template","last_synced_at":"2026-02-11T03:32:58.179Z","repository":{"id":311268939,"uuid":"1043099095","full_name":"MojoAuth/mojoauth-netlify-template","owner":"MojoAuth","description":"A Netlify-ready template to integrate MojoAuth passwordless authentication using email, phone OTPs, or passkeys. Quick to set up and easy to customize.","archived":false,"fork":false,"pushed_at":"2025-08-23T16:32:12.000Z","size":184,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-23T17:31:07.188Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/MojoAuth.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,"zenodo":null}},"created_at":"2025-08-23T06:16:50.000Z","updated_at":"2025-08-23T06:34:48.000Z","dependencies_parsed_at":"2025-08-23T17:36:45.766Z","dependency_job_id":"14812707-a9f6-4516-a7bb-e0c29456dcc2","html_url":"https://github.com/MojoAuth/mojoauth-netlify-template","commit_stats":null,"previous_names":["mojoauth/mojoauth-netlify-template"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/MojoAuth/mojoauth-netlify-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MojoAuth%2Fmojoauth-netlify-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MojoAuth%2Fmojoauth-netlify-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MojoAuth%2Fmojoauth-netlify-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MojoAuth%2Fmojoauth-netlify-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MojoAuth","download_url":"https://codeload.github.com/MojoAuth/mojoauth-netlify-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MojoAuth%2Fmojoauth-netlify-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273047554,"owners_count":25036385,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"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":"2025-08-31T22:17:17.275Z","updated_at":"2026-02-11T03:32:58.153Z","avatar_url":"https://github.com/MojoAuth.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MojoAuth Netlify Extension\n\nThis extension integrates MojoAuth's hosted login page with your Netlify site using the standard OIDC flow. It provides a clean, developer-friendly UI/UX for setting up and managing authentication on your Netlify sites.\n\n## Features\n\n- Easy integration with MojoAuth's hosted login page\n- Standard OIDC flow support\n- Automatic configuration of environment variables\n- Function generation for authentication endpoints\n- Intuitive UI for setting up and managing authentication\n\n## Getting Started 🚀\n\nFollow these steps to clone the repository and start using the app.\n\n### Prerequisites\n\n- An account on [MojoAuth](https://mojoauth.com/).\n- Node.js v16+\n- npm or yarn\n- A Netlify account\n\n### Clone the Repository\n\nStart by cloning the repository to your local machine:\n\n```bash\ngit clone https://github.com/MojoAuth/mojoauth-netlify-template\ncd mojoauth-netlify-template\n```\n\n### TypeScript Support\n\nThis template now includes TypeScript support for the Netlify functions. See [TYPESCRIPT.md](TYPESCRIPT.md) for details on the TypeScript implementation.\n\n### Installation\n\n```bash\n# Install dependencies\nnpm i\n\nnpm install netlify-cli -g\n\n# Start development server\nnpm run dev:open\n```\n\n### Connect To Netlify\n\nThe Netlify initialization script will walk you through how to connect to a new or existing Netlify project.\n\n```bash\nnetlify init\n```\nor, connect to Netlify by clicking the button below:\n\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/MojoAuth/mojoauth-netlify-template)\n\n\n### Configuration\n\nThe extension requires the following environment variables:\n\n- `MOJOAUTH_CLIENT_ID`: Your MojoAuth client ID\n- `MOJOAUTH_CLIENT_SECRET`: Your MojoAuth client secret\n- `MOJOAUTH_ISSUER`: MojoAuth OIDC issuer URL (typically https://{your project}.auth.mojoauth.com)\n- `MOJOAUTH_REDIRECT_URI`: Your application's redirect URI\n\n\n## How It Works\n\nThis extension creates three serverless functions in your Netlify site:\n\n1. **auth.ts**: Initiates the authentication flow and redirects to MojoAuth's hosted login page\n2. **auth-callback.ts**: Handles the callback from MojoAuth after successful authentication\n3. **auth-user.ts**: Provides user profile information based on the access token\n\n### Authentication Flow\n\n1. User clicks \"Login with MojoAuth\" and is redirected to the hosted login page\n2. After successful authentication, MojoAuth redirects back to your site\n3. The access token is securely stored and used to fetch user information\n4. User is redirected to your application with authentication complete\n\n### Error Handling\n\nThe application includes built-in error handling for common issues:\n\n1. **Configuration Errors**: If environment variables are missing, users will see a user-friendly error page explaining which variables need to be set up and how to fix the issue.\n2. **Authentication Errors**: If authentication fails, users are redirected to an error page with details.\n3. **Token Errors**: If the access token is invalid or expired, users are prompted to log in again.\n\n## Resources\n\n- [MojoAuth Documentation](https://docs.mojoauth.com/)\n- [Netlify Documentation](https://docs.netlify.com/)\n- [OpenID Connect Documentation](https://openid.net/connect/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmojoauth%2Fmojoauth-netlify-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmojoauth%2Fmojoauth-netlify-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmojoauth%2Fmojoauth-netlify-template/lists"}