{"id":21812916,"url":"https://github.com/relativelie/auth_back","last_synced_at":"2026-05-18T04:02:05.863Z","repository":{"id":218438855,"uuid":"746403256","full_name":"Relativelie/auth_back","owner":"Relativelie","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-22T11:14:19.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T09:22:58.868Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Relativelie.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}},"created_at":"2024-01-21T22:47:25.000Z","updated_at":"2024-01-21T22:47:30.000Z","dependencies_parsed_at":"2024-01-22T00:03:23.283Z","dependency_job_id":null,"html_url":"https://github.com/Relativelie/auth_back","commit_stats":null,"previous_names":["relativelie/auth_back"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Relativelie/auth_back","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relativelie%2Fauth_back","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relativelie%2Fauth_back/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relativelie%2Fauth_back/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relativelie%2Fauth_back/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Relativelie","download_url":"https://codeload.github.com/Relativelie/auth_back/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relativelie%2Fauth_back/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33164672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"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":"2024-11-27T14:25:52.789Z","updated_at":"2026-05-18T04:02:05.849Z","avatar_url":"https://github.com/Relativelie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mocks for auth page\n\nThis project serves as a mock data repository for a frontend project with [authentication](https://github.com/Relativelie/auth).\n\n## Requests\n\n### Registration:\n\n- Method: POST\n- Path: /api/register\n- Request Body: {email: string, password: string}\n- Response:\n  200 OK status. Body:\n  access_token: string,\n  refresh_token: string,\n  expires_in: number,\n  refresh_expires_in: number,\n\n  all another - error status\n\n### Login:\n\n- Method: POST\n- Path: /api/login\n- Request Body: {email: string, password: string}\n- Response:\n  200 OK status.\n  Body:\n  {\n  access_token: string,\n  refresh_token: string,\n  expires_in: number,\n  refresh_expires_in: number,\n  }\n\n  all another - error status\n\n### Refresh\n\n- Method: GET\n- Path: /api/refresh\n- Response:\n  200 OK status.\n  Body:\n  {\n  access_token: string;\n  expires_in: number;\n  refresh_expires_in: number;\n  refresh_token: string;\n  }\n\n  all another - error status\n\n### Profile\n\n- Method: GET\n- Path: /api/profile\n- Response:\n  200 OK status.\n  Body:\n  {\n  name: string;\n  job: string;\n  email: string;\n  location: string;\n  interests: string[];\n  bio: string;\n  avatar: string;\n  }\n\n  401, error: Invalid token\n\n## Installation\n1. Clone the repository\nhttps://github.com/Relativelie/auth_back.git\n\n2. Navigate to the project directory\n3. Install packages with 'npm install'\n4. Start the development server ''node auth_mock.js'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelativelie%2Fauth_back","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frelativelie%2Fauth_back","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelativelie%2Fauth_back/lists"}