{"id":13723726,"url":"https://github.com/dopry/svelte-auth0","last_synced_at":"2026-03-10T18:07:12.401Z","repository":{"id":37739050,"uuid":"233738120","full_name":"dopry/svelte-auth0","owner":"dopry","description":"Svelte Auth0 Components ","archived":false,"fork":false,"pushed_at":"2025-11-14T01:03:51.000Z","size":1403,"stargazers_count":73,"open_issues_count":6,"forks_count":14,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-18T14:51:32.959Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://darrelopry.com/svelte-auth0/","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/dopry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":null,"patreon":"dopry","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-01-14T02:23:04.000Z","updated_at":"2025-11-14T01:03:56.000Z","dependencies_parsed_at":"2022-08-08T21:30:51.696Z","dependency_job_id":"d8f8c41b-056d-411a-9890-31208d945640","html_url":"https://github.com/dopry/svelte-auth0","commit_stats":{"total_commits":36,"total_committers":9,"mean_commits":4.0,"dds":0.6111111111111112,"last_synced_commit":"bf05e0e5044377be158da9852699ff9aab73b326"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dopry/svelte-auth0","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dopry%2Fsvelte-auth0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dopry%2Fsvelte-auth0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dopry%2Fsvelte-auth0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dopry%2Fsvelte-auth0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dopry","download_url":"https://codeload.github.com/dopry/svelte-auth0/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dopry%2Fsvelte-auth0/sbom","scorecard":{"id":352490,"data":{"date":"2025-08-11","repo":{"name":"github.com/dopry/svelte-auth0","commit":"7692b150a52d2c72e3dd01ed86796019e77e51e3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.5,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":-1,"reason":"Found no human activity in the last 16 changesets","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"19 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-22h7-7wwg-qmgg","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-8266-84wp-wv5c","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T08:41:19.430Z","repository_id":37739050,"created_at":"2025-08-18T08:41:19.430Z","updated_at":"2025-08-18T08:41:19.430Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30346551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-08-03T01:01:44.980Z","updated_at":"2026-03-10T18:07:12.377Z","avatar_url":"https://github.com/dopry.png","language":"JavaScript","readme":"# svelte-auth0\n\nAn Auth0 Component for Svelte.\n\n[Try out the demo](https://darrelopry.com/svelte-auth0/)\n\n## Getting Started\n\nSetup an [Auth0](http://auth0.com) Account. Get the domain client_id  from the Default App.\n\n`npm install @dopry/svelte-auth0`\n\n### App.svelte\n\n```svelte\n\u003cscript\u003e\nimport {\n  Auth0Context,\n  Auth0LoginButton,\n  Auth0LogoutButton,\n  authError,\n  authToken,\n  idToken,\n  isAuthenticated,\n  isLoading,\n  login,\n  logout,\n  userInfo,\n} from '@dopry/svelte-auth0';\n\u003c/script\u003e\n\n\u003cAuth0Context domain=\"dev-hvw40i79.auth0.com\" client_id=\"aOijZt2ug6Ovgzp0HXdF23B6zxwA6PaP\"\u003e\n  \u003cAuth0LoginButton class=\"btn\"\u003eLogin\u003c/Auth0LoginButton\u003e\n  \u003cAuth0LogoutButton class=\"btn\"\u003eLogout\u003c/Auth0LogoutButton\u003e\n  \u003cpre\u003eisLoading: {$isLoading}\u003c/pre\u003e\n  \u003cpre\u003eisAuthenticated: {$isAuthenticated}\u003c/pre\u003e\n  \u003cpre\u003eauthToken: {$authToken}\u003c/pre\u003e\n  \u003cpre\u003eidToken: {$idToken}\u003c/pre\u003e\n  \u003cpre\u003euserInfo: {JSON.stringify($userInfo, null, 2)}\u003c/pre\u003e\n  \u003cpre\u003eauthError: {$authError}\u003c/pre\u003e\n\u003c/Auth0Context\u003e\n```\n\n## Docs\n\n### Components\n\n* Auth0Context - component to initiate the Auth0 client. You only need one instance in your DOM tree at the root\n\n  Attributes:\n  * domain - Auth0 domain\n  * client_id - Auth0 ClientId\n  * audience - The default audience to be used for requesting API access\n  * callback_url - override the default url that Auth0 will redirect to after login. default: window.location.href\n  * logout_url - override the default url that Auth0 will redirect to after logout. default: window.location.href\n\n* Auth0LoginButton - log out the current context\n\n  Attributes:\n  * preserve_route - tell the callback handler to return to the current url after login. default: true\n  * callback_url - override the context callback_url\n\n* Auth0LogoutButton - log in the current context\n  \n  Attributes:\n  * logout_url - override the context logout_url\n\n### Functions\n\n* login(auth0Promise, preseveRoute = true, callback_url = null) - begin a user login.\n* logout(auth0Promise, logout_url = null) - logout a user.\n* refreshToken(auth0Promise) - function to refresh a token.\n\n### Stores\n\n* isLoading - if true auth0 is still loading.\n* isAuthenticated - true if user is currently authenticated\n* authToken - api token\n* userInfo - the currently logged in user's info from Auth0\n* authError - the last authentication error.\n\n### Constants\n\n* AUTH0_CONTEXT_CALLBACK_URL,\n* AUTH0_CONTEXT_CLIENT_PROMISE - key for the Auth0 client in setContext/getContext.\n* AUTH0_CONTEXT_LOGOUT_URL,\n\n## Release\n\n**use semver**\nnpm publish\nnpm run showcase:build\nnpm run showcase:publish\n","funding_links":["https://patreon.com/dopry"],"categories":["components and libraries"],"sub_categories":["social and other 3rd party services"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdopry%2Fsvelte-auth0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdopry%2Fsvelte-auth0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdopry%2Fsvelte-auth0/lists"}