1405/02/29-kashkool
This commit is contained in:
+4
-4
@@ -30,11 +30,11 @@ export async function authenticateWithFingerprint() {
|
||||
|
||||
const createOptions = {
|
||||
challenge,
|
||||
rp: { name: 'ghatreh' },
|
||||
rp: { name: 'kashkol' },
|
||||
user: {
|
||||
id: Uint8Array.from('user-id', c => c.charCodeAt(0)),
|
||||
name: 'Ghatreh',
|
||||
displayName: 'Ghatreh'
|
||||
name: 'Kashkol',
|
||||
displayName: 'Kashkol'
|
||||
},
|
||||
pubKeyCredParams: [{ type: 'public-key', alg: -7 }],
|
||||
authenticatorSelection: {
|
||||
@@ -52,7 +52,7 @@ export async function authenticateWithFingerprint() {
|
||||
const credentialId = btoa(String.fromCharCode(...new Uint8Array(credential.rawId)))
|
||||
|
||||
// بازیابی توکن از localStorage
|
||||
const token = localStorage.getItem('ghatreh_app_token')
|
||||
const token = localStorage.getItem('kashkol_app_token')
|
||||
|
||||
if (!token) {
|
||||
console.warn('توکن پیدا نشد، عملیات متوقف شد.')
|
||||
|
||||
@@ -95,7 +95,7 @@ export function useProduct(product: Ref<Product> | Product) {
|
||||
if (temp && temp.file) {
|
||||
return temp.file.src
|
||||
}
|
||||
return 'Ghatreh'
|
||||
return 'kashkol'
|
||||
}
|
||||
|
||||
const collection = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user