export function getInstanceJwtData(qs) {
    try {
        const searchParams = new URLSearchParams(qs);
        const jwt = searchParams.get('instance');
        return jwt
            ? JSON.parse(atob(jwt.split('.')[1]))
            : null;
    }
    catch (e) {
        console.error('Failed to parse JWT', e);
        return null;
    }
}
//# sourceMappingURL=getInstanceJwtData.js.map