Update one

This commit is contained in:
Charlie Kolb 2024-11-29 11:05:50 +01:00
parent a6fe16cdb5
commit 1bb9238576
No known key found for this signature in database

View file

@ -76,8 +76,7 @@ export class CodeFlow {
const data =
typeof url.search === 'string' ? qs.parse(url.search.substring(1)) : url.search || {};
// @Cleanup: URL above should never not be a string, so we shouldn't need the fallback that breaks type-safety here
// @ts-expect-error We don't mind this throwing, as that's what we're about to do
// @ts-expect-error getAuthError is not correctly typed
const error = getAuthError(data);
if (error) throw error;