Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
updateUserProfile,
} from "../../lib/slices/authSlice"
import { refreshTokens, token } from "../../lib/slices/tokensSlice"
import { QRCodeSVG } from 'qrcode.react'

const title = "Security"
const redirectTOTP = "/settings"
Expand Down Expand Up @@ -313,7 +314,7 @@ export default function Security() {
Open the app and scan the QR code below to pair
your mobile with your account.
</p>
{/* <QrcodeVue :value="totpNew.uri" :size="qrSize" level="M" render-as="svg" className="my-2 mx-auto"/> */}
<QRCodeSVG value={totpNew.uri} size={qrSize} level="M" className="my-2 mx-auto"/>
<p>
If you can&apos;t scan, you can type in the
following key:
Expand Down
3 changes: 2 additions & 1 deletion {{cookiecutter.project_slug}}/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"remark-gfm": "^4.0.0",
"remark-html": "^16.0.1",
"remark-toc": "^9.0.0",
"tailwind": "^4.0.0"
"tailwind": "^4.0.0",
"qrcode.react": "^3.1.0"
},
"devDependencies": {
"@types/mdx": "^2.0.8",
Expand Down