remove todo comments

This commit is contained in:
Balázs Orbán
2022-12-13 12:26:04 +01:00
parent e651df57a0
commit 9d0c138b2d
4 changed files with 1 additions and 6 deletions

View File

@@ -34,7 +34,6 @@ export default function AzureADB2C<P extends AzureB2CProfile>(
id: profile.sub,
name: profile.name,
email: profile.emails[0],
// TODO: Find out how to retrieve the profile picture
image: null,
}
},

View File

@@ -1,12 +1,9 @@
import type { OAuthConfig, OAuthUserConfig } from "."
interface HubSpotProfile extends Record<string, any> {
// TODO: figure out additional fields, for now using
// https://legacydocs.hubspot.com/docs/methods/oauth2/get-access-token-information
user: string
user_id: string
hub_domain: string
hub_id: string
}

View File

@@ -550,7 +550,7 @@ export interface ResponseInternal<
status?: number
headers?: Headers | HeadersInit
body?: Body
redirect?: URL | string // TODO: refactor to only allow URL
redirect?: URL | string
cookies?: Cookie[]
}

View File

@@ -1,6 +1,5 @@
import { UnknownError } from "../errors"
// TODO: better typing
/** Makes sure that error is always serializable */
function formatError(o: unknown): unknown {
if (o instanceof Error && !(o instanceof UnknownError)) {