We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 775ecd0 commit b62c034Copy full SHA for b62c034
packages/api/src/schemas/devices.ts
@@ -22,7 +22,7 @@ export function encodeDeviceRegistrationURI(
22
23
export function decodeDeviceRegistrationURI(uri: string) {
24
const url = new URL(uri)
25
- if (url.protocol !== 'e2esdk:' || url.pathname !== '//register-device') {
+ if (url.protocol !== 'e2esdk:' || url.host !== 'register-device') {
26
throw new Error('Invalid device registration data')
27
}
28
const userId = identitySchema.shape.userId.parse(
0 commit comments