feat: add issuer to MFA TOTP enrollment and bump version to 2.23.5 (#442)
- Add NEXT_PUBLIC_PRODUCT_NAME as issuer in MFA enroll call - This improves the user experience in authenticator apps by showing the product name - Bump version by 2 patch versions Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
f0baf4f348
commit
f3ce70a5b6
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "next-supabase-saas-kit-turbo",
|
"name": "next-supabase-saas-kit-turbo",
|
||||||
"version": "2.23.4",
|
"version": "2.23.5",
|
||||||
"private": true,
|
"private": true,
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -433,6 +433,7 @@ function useEnrollFactor(userId: string) {
|
|||||||
const response = await client.auth.mfa.enroll({
|
const response = await client.auth.mfa.enroll({
|
||||||
friendlyName: factorName,
|
friendlyName: factorName,
|
||||||
factorType: 'totp',
|
factorType: 'totp',
|
||||||
|
issuer: process.env.NEXT_PUBLIC_PRODUCT_NAME,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user