File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,9 +83,10 @@ The following project structure should be followed:
83
83
```
84
84
85
85
## Generating Authentication Token
86
+ - Run the project locally, make sure the server is listening to requests
86
87
- 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>
89
90
- Use the cookie for authenticated routes in the API.
90
91
- For non-production environments, authentication is also supported with the ` Authorization ` header.
91
92
- Authorization header: ` Authorization: Bearer <token> `
@@ -96,4 +97,3 @@ The following project structure should be followed:
96
97
- Every pull request should have associated issue(s) on our [ issue tracker] ( https://github.com/Real-Dev-Squad/website-backend/issues ) .
97
98
- 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.
98
99
- The PR(s) should be merged only after the CI passes.
99
-
You can’t perform that action at this time.
0 commit comments