UNPKG

@jellyfish-dev/ts-client-sdk

Version:
10 lines (9 loc) 250 B
export const AUTH_ERROR_REASONS = [ "missing token", "invalid token", "expired token", "room not found", "peer not found", "peer already connected", ]; export const isAuthError = (error) => AUTH_ERROR_REASONS.includes(error);