-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove stale cookies from login page #78
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thanks for contributing! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good to me! Just added some comments to clean up the code a bit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can delete this, we switched to using a route handler instead
@@ -15,6 +15,7 @@ import { getErrorMessage } from '../utils'; | |||
|
|||
export const login = async (email: string, password: string): Promise<LoginResponse> => { | |||
const requestUrl = `${config.api.baseUrl}${config.api.endpoints.auth.login}`; | |||
console.log('requestUrl', requestUrl); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove 🙏
@@ -1,6 +1,7 @@ | |||
## Setup | |||
|
|||
1. Copy `.env.example` to `.env` and fill in the values | |||
1. If you are on ACM @ UCSD Dev Team, fields are available in our google drive for step 1 and 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you undo this change (so there are no changes to the server/ folder), otherwise I think merging your PR might take down both portals while the backend action runs
@@ -12,7 +12,7 @@ export default async function Home() { | |||
|
|||
if (!accessToken) { | |||
console.log('Dashboard broke: access token undefined'); | |||
redirect('/login'); | |||
redirect('/api/logout'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you might also need to update the application and profile edit pages
Info
Closes #79 (If there is no issue for this pull request yet, please create one or
delete this line if the pull request is for a very minor tweak).
Description
What changes did you make? List all distinct problems that this PR addresses. Explain any relevant
motivation or context.
Bug fixes regarding cookies and the login page
Changes
Type of Change
expected)
workflows, linting, etc.)
If you've selected Patch, Minor, or Major as your change type, make sure to bump the version before merging in
package.json
!Testing
I have tested that my changes fully resolve the linked issue ...
Checklist
package.json
file.Screenshots
Please include a screenshot of your Postman testing passing successfully.