Skip to content

Commit

Permalink
Update authentication url
Browse files Browse the repository at this point in the history
  • Loading branch information
code28 committed Sep 2, 2024
1 parent b21a9fa commit 920c0dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/QrCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ import QrcodeVue from 'qrcode.vue'
import type {Level, RenderAs} from 'qrcode.vue'
const runtimeConfig = useRuntimeConfig()
const baseUrl = runtimeConfig.public.apiUrl
const props = defineProps<{
qrCodeData: { client_id: string, request_uri: string }
}>();
const {client_id, request_uri} = props.qrCodeData;
const authenticationUrl = `openid4vp://${baseUrl}?client_id=${client_id}&request_uri=${request_uri}`
const authenticationUrl = `openid4vp://?client_id=${client_id}&request_uri=${request_uri}`
const link = ref(authenticationUrl)
const level = ref<Level>('M')
const renderAs = ref<RenderAs>('svg')
</script>
</script>

0 comments on commit 920c0dc

Please sign in to comment.