{"id":21096810,"url":"https://github.com/stytchauth/stytch-vue-example","last_synced_at":"2025-07-27T15:12:40.656Z","repository":{"id":228669549,"uuid":"611879892","full_name":"stytchauth/stytch-vue-example","owner":"stytchauth","description":"A Vue.js example app using the Stytch JavaScript SDK","archived":false,"fork":false,"pushed_at":"2024-07-22T17:59:05.000Z","size":564,"stargazers_count":18,"open_issues_count":7,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-19T01:47:30.828Z","etag":null,"topics":["authentication","stytch","vue","vue3"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/stytchauth.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-03-09T18:22:35.000Z","updated_at":"2025-02-21T20:37:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"e404a1d0-8c29-485c-aa1d-4d98b937d9a0","html_url":"https://github.com/stytchauth/stytch-vue-example","commit_stats":null,"previous_names":["stytchauth/stytch-vue-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stytchauth/stytch-vue-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stytchauth%2Fstytch-vue-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stytchauth%2Fstytch-vue-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stytchauth%2Fstytch-vue-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stytchauth%2Fstytch-vue-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stytchauth","download_url":"https://codeload.github.com/stytchauth/stytch-vue-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stytchauth%2Fstytch-vue-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267376369,"owners_count":24077300,"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-07-27T02:00:11.917Z","response_time":82,"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":["authentication","stytch","vue","vue3"],"created_at":"2024-11-19T22:44:05.387Z","updated_at":"2025-07-27T15:12:40.631Z","avatar_url":"https://github.com/stytchauth.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stytch Vue example application\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/100632220/217049841-b9eeb72a-3e50-4074-839a-e64ee5d4a88c.png\" width=\"750\"\u003e\n\u003c/p\u003e\n\n## Overview\n\nThis example application demonstrates how one may use Stytch within a Vue application. This project was bootstrapped with [create-vue](https://github.com/vuejs/create-vue).\n\nThis project uses Stytch's [JavaScript SDK](https://stytch.com/docs/sdks/javascript-sdk) which provides pre-built UI components and headless methods to securely interact with Stytch.\n\nThis application features Email Magic Links for authentication, as well as our Sessions Management product to manage user sessions. You can use this application's source code as a learning resource, or use it as a jumping off point for your own project. We are excited to see what you build with Stytch!\n\n## Set up\n\nFollow the steps below to get this application fully functional and running using your own Stytch credentials.\n\n### In the Stytch Dashboard\n\n1. Create a [Stytch](https://stytch.com/) account. Once your account is set up a Project called \"My first project\" will be automatically created for you.\n\n2. Within your new Project, navigate to [SDK configuration](https://stytch.com/dashboard/sdk-configuration), and make the following changes:\n\n   - Click **Enable SDK**.\n   - Under **Authorized environments** add the domain `http://localhost:3000`.\n     \u003cimg width=\"400\" alt=\"Authorized environments\" src=\"https://user-images.githubusercontent.com/100632220/217052985-2e6fc264-7b8b-452b-9d24-66a76c143d10.png\"\u003e\n\n   - Within the **Email Magic Links** drawer, toggle on **Enable the LoginOrCreate Flow**.\n     \u003cimg width=\"400\" alt=\"SDK Email Magic Links\" src=\"https://user-images.githubusercontent.com/100632220/217053215-8c369de8-7828-4ad6-ac88-a50918520fc3.png\"\u003e\n\n3. Navigate to [Redirect URLs](https://stytch.com/dashboard/redirect-urls), and add `http://localhost:3000` as the types **Login** and **Sign-up**.\n   \u003cimg width=\"400\" alt=\"Redirect URLs\" src=\"https://user-images.githubusercontent.com/100632220/217054016-913cabda-098e-4436-9829-2f33e7db05a7.png\"\u003e\n\n4. Finally, navigate to [API Keys](https://stytch.com/dashboard/api-keys), and copy your `public_token`. You will need this value later on.\n\n### On your machine\n\nIn your terminal clone the project and install dependencies:\n\n```bash\ngit clone https://github.com/stytchauth/stytch-vue-example.git\ncd stytch-vue-example\nnpm i\n```\n\nNext, create `.env.local` file by running the command below and your `public_token`. Learn more about Vue's support for [custom environment variables here](https://cli.vuejs.org/guide/mode-and-env.html#environment-variables).\n\n```bash\necho \"VITE_STYTCH_PUBLIC_TOKEN=YOUR_TOKEN_HERE\" \u003e .env.local\n# For example, echo \"VITE_STYTCH_PUBLIC_TOKEN=public-token-test-123abcd-1234-1234-abcd-123123abcabc\" \u003e .env.local\n```\n\n## Running locally\n\nAfter completing all the set up steps above the application can be run with the command:\n\n```bash\nnpm run dev\n```\n\nThe application will be available at [`http://localhost:3000`](http://localhost:3000).\n\nYou'll be able to login with Email Magic Links and see your Stytch User object, Stytch Session, and see how logging out works.\n\n## Next steps\n\nThis example app showcases a small portion of what you can accomplish with Stytch. Here are a few ideas to explore:\n\n1. Add additional login methods like [Passwords](https://stytch.com/docs/passwords#guides_getting-started-sdk).\n2. Replace the prebuilt UI with your own using by using the SDK's [headless methods](https://stytch.com/docs/sdks/javascript-sdk).\n3. Add a Google OAuth button with the high converting [Google One Tap UI](https://stytch.com/docs/oauth#guides_google-sdk).\n4. Secure your app further by building MFA authentication using methods like [WebAuthn](https://stytch.com/docs/sdks/javascript-sdk#webauthn).\n5. Use [Stytch Sessions](https://stytch.com/docs/sessions) to secure your backend.\n\n## Get help and join the community\n\n#### :speech_balloon: Stytch community Slack\n\nJoin the discussion, ask questions, and suggest new features in our ​[Slack community](https://stytch.com/docs/resources/support/overview)!\n\n#### :question: Need support?\n\nCheck out the [Stytch Forum](https://forum.stytch.com/) or email us at [support@stytch.com](mailto:support@stytch.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstytchauth%2Fstytch-vue-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstytchauth%2Fstytch-vue-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstytchauth%2Fstytch-vue-example/lists"}