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:
Giancarlo Buomprisco
2026-01-11 15:12:08 +01:00
committed by GitHub
parent f0baf4f348
commit f3ce70a5b6
2 changed files with 2 additions and 1 deletions

View File

@@ -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": {

View File

@@ -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) {