From d27cfdfa113c00525c0bf0b5f637377b265cc781 Mon Sep 17 00:00:00 2001 From: Yash Raj <56453897+yesyash@users.noreply.github.com> Date: Wed, 12 Jun 2024 01:07:07 +0530 Subject: [PATCH] add setps to authenticate a user during development (#125) * add setps to authenticate a user during development * update copy --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 70936cb8..53a67505 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,14 @@ - Press the `Run` button on the top right of your screen to run the application. ![img.png](public/highlight-run-application.png) +## Steps to authenticate a user during development +- Run RDS backend on your local machine +- Copy the `public key` from `local.js` (if not in `local.js` copy it from `development.js`) and add it in your `.env` file. +- Run skill tree frontend, click on `signin with github` button + - Once authenticated you will be redirected to `localhost:4000` (skill tree frontend homepage) and a `rds-session-v2-development` cookie will be set in the browser which will be used for authentication when making API calls. + - NOTE: + - make sure that `incompleteUserDetails` is false for the user in firestore, else the redirect will not work as intended. + ## To Authenticate Yourself