Skip to content

Commit

Permalink
chore: migrate to base32Encode (#73)
Browse files Browse the repository at this point in the history
Author: @kldeb
  • Loading branch information
dev-xo authored Aug 29, 2024
1 parent 85616e3 commit 2ecf238
Show file tree
Hide file tree
Showing 6 changed files with 3,278 additions and 1,839 deletions.
11 changes: 7 additions & 4 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,14 @@ export async function loader({ request }: LoaderFunctionArgs) {
if (!authEmail) return redirect('/login')

// Commit session to clear any `flash` error message.
return json({ authError }, {
headers: {
'set-cookie': await commitSession(session),
return json(
{ authError },
{
headers: {
'set-cookie': await commitSession(session),
},
},
})
)
}

export async function action({ request }: ActionFunctionArgs) {
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@
"/public/dist"
],
"dependencies": {
"@epic-web/totp": "^1.1.2",
"jose": "^5.2.4",
"thirty-two": "^1.0.2"
"@epic-web/totp": "^1.1.3",
"base32-encode": "^2.0.0",
"jose": "^5.8.0"
},
"peerDependencies": {
"remix-auth": "^3.6.0"
},
"devDependencies": {
"@remix-run/node": "^2.0.0",
"@remix-run/server-runtime": "^2.0.0",
"@types/node": "^20.11.20",
"@remix-run/node": "^2.11.2",
"@remix-run/server-runtime": "^2.11.2",
"@types/node": "^20.16.2",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vitest/coverage-v8": "1.0.0-beta.3",
Expand All @@ -58,9 +58,9 @@
"husky": "^8.0.3",
"prettier": "^2.8.8",
"tiny-invariant": "^1.3.3",
"typescript": "^5.3.3",
"vite": "^4.5.2",
"vite-tsconfig-paths": "^4.3.1",
"vitest": "^1.3.1"
"typescript": "^5.5.4",
"vite": "^4.5.3",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.6.0"
}
}
Loading

0 comments on commit 2ecf238

Please sign in to comment.