Skip to content

Commit dc9d632

Browse files
Merge pull request #106 from Real-Dev-Squad/cookie-readme
Document about getting cookie in local
2 parents 99137b8 + 7543021 commit dc9d632

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ The following project structure should be followed:
8383
```
8484

8585
## Generating Authentication Token
86+
- Run the project locally, make sure the server is listening to requests
8687
- Navigate to `https://github.com/login/oauth/authorize?client_id=<GITHUB_CLIENT_ID>`
87-
- Authorize the application.
88-
- Copy the response cookie named `rds-session` from the redirected request from the API.
88+
- Authorize the application
89+
- Copy the response cookie named rds-session from the redirected request <HOST>/auth/github/callback?code=<SOME_AUTOGENERATED_CODE>
8990
- Use the cookie for authenticated routes in the API.
9091
- For non-production environments, authentication is also supported with the `Authorization` header.
9192
- Authorization header: `Authorization: Bearer <token>`
@@ -96,4 +97,3 @@ The following project structure should be followed:
9697
- Every pull request should have associated issue(s) on our [issue tracker](https://github.com/Real-Dev-Squad/website-backend/issues).
9798
- For any non-trivial fixes and features, unit and integration tests must be added. The PR reviewer should not approve/merge PR(s) that lack these.
9899
- The PR(s) should be merged only after the CI passes.
99-

0 commit comments

Comments
 (0)