UNPKG

convex

Version:

Client for the Convex Cloud

14 lines (13 loc) 345 B
"use strict"; export function validateIdentityProviderURL(iss) { iss = iss.trim(); if (!/^https?:\/\//i.test(iss)) { iss = "https://" + iss; } const issURL = new URL(iss); if (issURL.protocol != "https:") { throw new Error("Only https identity providers are supported"); } return issURL; } //# sourceMappingURL=auth.js.map