{"id":15195303,"url":"https://github.com/zentered/auth0-get-token","last_synced_at":"2026-02-10T21:01:45.968Z","repository":{"id":57115687,"uuid":"191938141","full_name":"zentered/auth0-get-token","owner":"zentered","description":"Auth0 library to retrieve accessTokens for integration testing","archived":false,"fork":false,"pushed_at":"2019-11-02T14:56:30.000Z","size":178,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-09-30T00:44:25.025Z","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/zentered.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}},"created_at":"2019-06-14T12:19:02.000Z","updated_at":"2019-11-02T14:56:03.000Z","dependencies_parsed_at":"2022-08-23T04:11:16.100Z","dependency_job_id":null,"html_url":"https://github.com/zentered/auth0-get-token","commit_stats":null,"previous_names":["heneise/auth0-get-token"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zentered/auth0-get-token","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zentered%2Fauth0-get-token","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zentered%2Fauth0-get-token/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zentered%2Fauth0-get-token/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zentered%2Fauth0-get-token/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zentered","download_url":"https://codeload.github.com/zentered/auth0-get-token/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zentered%2Fauth0-get-token/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29316367,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T20:44:44.282Z","status":"ssl_error","status_checked_at":"2026-02-10T20:44:43.393Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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-09-27T23:21:14.391Z","updated_at":"2026-02-10T21:01:45.949Z","avatar_url":"https://github.com/zentered.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/heneise/auth0-get-token.svg?branch=master)](https://travis-ci.com/heneise/auth0-get-token)\n\n# Auth0 Token\n\nGetting an access token for your API.\n\nThis can be used for integration testing, to dynamically obtain tokens when needed. No hardcoded accessTokens, no mocking.\n\n## Auth0 Setup\n\n![auth0 grant settings](https://user-images.githubusercontent.com/74390/59589705-39a3ce80-90f3-11e9-8a82-f56cbb283eae.png)\n\n- In your [Auth0 Dashboard](https://manage.auth0.com/dashboard/) create a new API if you didn't already do so (you can copy the API Identifier right away and paste into the config)\n- Head over to \"Applications\", there should be a Machine-to-Machine application with the same name as your API and \"(Test Application)\"\n- Click on the Test Application to see the settings\n- In the very bottom, click \"Show Advanced Settings\"\n- Go to the tab \"Grant Types\"\n- Select \"Password\" (this enables user/password requests for this library)\n\n\n## Usage\n\nFrom the auth0 API, copy:\n\n- API IDENTIFIER (ie. \"auth0-get-token\") as `AUTH0_AUDIENCE`\n\nFrom the auth0 Application, copy:\n\n- Domain as `AUTH0_BASE_URL` (add `https://`)\n- Client ID as `AUTH0_CLIENT_ID`\n- Client Secret as `AUTH0_CLIENT_SECRET`\n\nThen, you can retrieve a token:\n\n    const getToken = require('auth0-get-token')\n    const tokens = await getToken('username', 'test-password')\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzentered%2Fauth0-get-token","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzentered%2Fauth0-get-token","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzentered%2Fauth0-get-token/lists"}