Skip to content

Commit 867f8bf

Browse files
Merge pull request #123 from kamranahmedse/master
Create a new pull request by comparing changes across two branches
2 parents 105685b + bd3fd8b commit 867f8bf

File tree

224 files changed

+8468
-625
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

224 files changed

+8468
-625
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
"@astrojs/tailwind": "^5.1.0",
2828
"@fingerprintjs/fingerprintjs": "^4.2.2",
2929
"@nanostores/react": "^0.7.1",
30-
"@types/react": "^18.2.55",
30+
"@types/react": "^18.2.56",
3131
"@types/react-dom": "^18.2.19",
3232
"astro": "^4.4.0",
3333
"astro-compress": "^2.2.10",
3434
"clsx": "^2.1.0",
3535
"dracula-prism": "^2.1.16",
3636
"jose": "^5.2.2",
3737
"js-cookie": "^3.0.5",
38-
"lucide-react": "^0.331.0",
38+
"lucide-react": "^0.334.0",
3939
"nanoid": "^5.0.5",
4040
"nanostores": "^0.9.5",
4141
"node-html-parser": "^6.1.12",
@@ -50,7 +50,7 @@
5050
"slugify": "^1.6.6",
5151
"tailwind-merge": "^2.2.1",
5252
"tailwindcss": "^3.4.1",
53-
"zustand": "^4.5.0"
53+
"zustand": "^4.5.1"
5454
},
5555
"devDependencies": {
5656
"@playwright/test": "^1.41.2",

pnpm-lock.yaml

Lines changed: 45 additions & 80 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/authors/peter-thaleikis.png

150 KB
Loading
91.1 KB
Binary file not shown.

readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ Roadmaps are now interactive, you can click the nodes to read more about the top
3131
Here is the list of available roadmaps with more being actively worked upon.
3232

3333
- [Frontend Roadmap](https://roadmap.sh/frontend) / [Frontend Beginner Roadmap](https://roadmap.sh/frontend?r=frontend-beginner)
34-
- [Backend Roadmap](https://roadmap.sh/backend)
34+
- [Backend Roadmap](https://roadmap.sh/backend) / [Backend Beginner Roadmap](https://roadmap.sh/backend?r=backend-beginner)
3535
- [DevOps Roadmap](https://roadmap.sh/devops) / [DevOps Beginner Roadmap](https://roadmap.sh/devops?r=devops-beginner)
3636
- [Full Stack Roadmap](https://roadmap.sh/full-stack)
3737
- [Computer Science Roadmap](https://roadmap.sh/computer-science)
38+
- [Data Structures and Algorithms Roadmap](https://roadmap.sh/datastructures-and-algorithms)
3839
- [AI and Data Scientist Roadmap](https://roadmap.sh/ai-data-scientist)
40+
- [MLOps Roadmap](https://roadmap.sh/mlops)
3941
- [QA Roadmap](https://roadmap.sh/qa)
4042
- [Python Roadmap](https://roadmap.sh/python)
4143
- [Software Architect Roadmap](https://roadmap.sh/software-architect)

src/components/AuthenticationFlow/EmailLoginForm.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Cookies from 'js-cookie';
22
import type { FormEvent } from 'react';
33
import { useState } from 'react';
44
import { httpPost } from '../../lib/http';
5-
import { TOKEN_COOKIE_NAME } from '../../lib/jwt';
5+
import { TOKEN_COOKIE_NAME, setAuthToken } from '../../lib/jwt';
66

77
type EmailLoginFormProps = {
88
isDisabled?: boolean;
@@ -34,11 +34,7 @@ export function EmailLoginForm(props: EmailLoginFormProps) {
3434

3535
// Log the user in and reload the page
3636
if (response?.token) {
37-
Cookies.set(TOKEN_COOKIE_NAME, response.token, {
38-
path: '/',
39-
expires: 30,
40-
domain: import.meta.env.DEV ? 'localhost' : '.roadmap.sh',
41-
});
37+
setAuthToken(response.token);
4238
window.location.reload();
4339

4440
return;

0 commit comments

Comments
 (0)