Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(connector): authEndpoint backward compatibility #410

Closed
wants to merge 12 commits into from
Closed
Prev Previous commit
Next Next commit
refactor: code style (-_-)
  • Loading branch information
021-projects committed Jan 20, 2025
commit f2dd6d1f5e3d2bd0974c9771b176532ba520cfb7
6 changes: 3 additions & 3 deletions src/util/csrf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export function resolveCsrf(fallback: string | null = null): string | null {
}

if (
typeof document !== 'undefined' &&
typeof document.querySelector === 'function' &&
(selector = document.querySelector('meta[name="csrf-token"]'))
typeof document !== 'undefined' &&
typeof document.querySelector === 'function' &&
(selector = document.querySelector('meta[name="csrf-token"]'))
) {
return selector?.getAttribute('content') || null;
}
Expand Down
6 changes: 3 additions & 3 deletions src/util/pusher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function convertDeprecatedOptions(options: Record<any, any>) {

deprecationWarning(
'The authEndpoint option is deprecated and will be removed in the next major version. ' +
'Please use the channelAuthorization.endpoint option instead.'
'Please use the channelAuthorization.endpoint option instead.'
);
}

Expand All @@ -47,7 +47,7 @@ export function convertDeprecatedOptions(options: Record<any, any>) {

deprecationWarning(
'The authTransport option is deprecated and will be removed in the next major version. ' +
'Please use the channelAuthorization.transport option instead.'
'Please use the channelAuthorization.transport option instead.'
);
}

Expand All @@ -60,7 +60,7 @@ export function convertDeprecatedOptions(options: Record<any, any>) {

deprecationWarning(
'The auth option is deprecated and will be removed in the next major version. ' +
'Please use the channelAuthorization.headers and channelAuthorization.params options instead.'
'Please use the channelAuthorization.headers and channelAuthorization.params options instead.'
);
}

Expand Down
Loading