{"id":24064327,"url":"https://github.com/nda17/user-auth-template","last_synced_at":"2025-08-03T10:07:42.203Z","repository":{"id":259164820,"uuid":"853585986","full_name":"nda17/User-auth-template","owner":"nda17","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-17T13:37:47.000Z","size":880,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T14:26:31.212Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/nda17.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":"2024-09-07T01:12:20.000Z","updated_at":"2025-01-28T00:11:34.000Z","dependencies_parsed_at":"2024-10-23T06:59:44.730Z","dependency_job_id":"e7d503cc-b0cc-4e22-91ee-c6df1cb0b9cc","html_url":"https://github.com/nda17/User-auth-template","commit_stats":null,"previous_names":["nda17/auth-form","nda17/user-auth-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nda17%2FUser-auth-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nda17%2FUser-auth-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nda17%2FUser-auth-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nda17%2FUser-auth-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nda17","download_url":"https://codeload.github.com/nda17/User-auth-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240906193,"owners_count":19876598,"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","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-01-09T10:23:21.761Z","updated_at":"2025-02-26T17:41:59.627Z","avatar_url":"https://github.com/nda17.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Currently in development!\nREADME v0.1.0\n\n# Auth-form\n\n# Authorization-form\n\nrefresh-token.service - настройки куки при деплое\nmain ts - реализовать логирование winston\nauth.helper.ts - указание домена для которого действует куки\n------------------------------\n\n- Установить pg admin (postgresql на пк)\n- Создать БД через pg admin и запомнить ее название\n- Получать username, password postgresql\n- Обновить данные в env\nDATABASE_URL=postgresql://postgres:123456@localhost:5432/auth-mk?schema=public\n\npostgres - твой юзернейм postgresql\n123456 - твой пароль postgresql\nlocalhost - не меняется\n5432 - дефолтный порт, иногда может меняться\nauth-mk - название твое базы\n\nВыполнить:\n\tnpm install\n\tnpm prisma db push\n\n//GET social media auth api tokens\nGoogle\nДля получения ключей Google OAuth выполните следующие шаги:\n\nПерейдите на Google Cloud Console.\nСоздайте новый проект или выберите существующий.\nПерейдите в меню APIs \u0026 Services \u003e Credentials (https://console.cloud.google.com/apis/dashboard).\nНажмите Create Credentials и выберите OAuth Client ID.\nНастройте экран согласия OAuth (external), если вы еще этого не сделали.\nЗаполните необходимые поля (auth domains пропускаем, как и вкладку scopes и optional info).\nДобавляем google аккаунт, который будем тестировать в поле \"Test users\"\nМне потребовалось еще раз вернуться на страницу https://console.cloud.google.com/apis/credentials и нажать кнопку Create credentials -\u003e OAuth client ID\nВыбираем тип веб-приложение\nИ далее наполянем поля (или свой домен на production\norigins = http://localhost:4200\nredirects = http://localhost:4200/auth/google/callback\nПосле этого нажимаем кнопку создать и получаем Client ID и Client Secret.\n\nGitHub\nДля получения ключей GitHub OAuth выполните следующие шаги:\n\nПерейдите на GitHub Developer Settings (https://github.com/settings/developers).\nВ разделе OAuth Apps нажмите New OAuth App.\nЗаполните необходимые поля, такие как Application name, Homepage URL, и Authorization callback URL.\nНажмите Register application и получите Client ID и Client Secret.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnda17%2Fuser-auth-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnda17%2Fuser-auth-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnda17%2Fuser-auth-template/lists"}