You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-23 17:02:25 +03:00
Change imports for Node.js compatibility (#4377)
* Change imports for Node.js compatibility Fixes: #4287 Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org> * Run prettier * Run prettier (again) * Add comment * Update babel.config.cjs --------- Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org> Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
@@ -16,9 +16,9 @@ limitations under the License.
|
||||
|
||||
import { IdTokenClaims, Log, OidcClient, SigninResponse, SigninState, WebStorageStateStore } from "oidc-client-ts";
|
||||
|
||||
import { logger } from "../logger";
|
||||
import { randomString } from "../randomstring";
|
||||
import { OidcError } from "./error";
|
||||
import { logger } from "../logger.ts";
|
||||
import { randomString } from "../randomstring.ts";
|
||||
import { OidcError } from "./error.ts";
|
||||
import {
|
||||
BearerTokenResponse,
|
||||
UserState,
|
||||
@@ -26,9 +26,9 @@ import {
|
||||
ValidatedIssuerMetadata,
|
||||
validateIdToken,
|
||||
validateStoredUserState,
|
||||
} from "./validate";
|
||||
import { sha256 } from "../digest";
|
||||
import { encodeUnpaddedBase64Url } from "../base64";
|
||||
} from "./validate.ts";
|
||||
import { sha256 } from "../digest.ts";
|
||||
import { encodeUnpaddedBase64Url } from "../base64.ts";
|
||||
|
||||
// reexport for backwards compatibility
|
||||
export type { BearerTokenResponse };
|
||||
|
||||
@@ -16,9 +16,9 @@ limitations under the License.
|
||||
|
||||
import { MetadataService, OidcClientSettingsStore } from "oidc-client-ts";
|
||||
|
||||
import { isValidatedIssuerMetadata, validateOIDCIssuerWellKnown } from "./validate";
|
||||
import { Method, timeoutSignal } from "../http-api";
|
||||
import { OidcClientConfig } from "./index";
|
||||
import { isValidatedIssuerMetadata, validateOIDCIssuerWellKnown } from "./validate.ts";
|
||||
import { Method, timeoutSignal } from "../http-api/index.ts";
|
||||
import { OidcClientConfig } from "./index.ts";
|
||||
|
||||
/**
|
||||
* @experimental
|
||||
|
||||
@@ -15,14 +15,14 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
import type { SigningKey } from "oidc-client-ts";
|
||||
import { ValidatedIssuerConfig, ValidatedIssuerMetadata } from "./validate";
|
||||
import { ValidatedIssuerConfig, ValidatedIssuerMetadata } from "./validate.ts";
|
||||
|
||||
export * from "./authorize";
|
||||
export * from "./discovery";
|
||||
export * from "./error";
|
||||
export * from "./register";
|
||||
export * from "./tokenRefresher";
|
||||
export * from "./validate";
|
||||
export * from "./authorize.ts";
|
||||
export * from "./discovery.ts";
|
||||
export * from "./error.ts";
|
||||
export * from "./register.ts";
|
||||
export * from "./tokenRefresher.ts";
|
||||
export * from "./validate.ts";
|
||||
|
||||
/**
|
||||
* Validated config for native OIDC authentication, as returned by {@link discoverAndValidateOIDCIssuerWellKnown}.
|
||||
|
||||
@@ -14,11 +14,11 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { OidcClientConfig } from ".";
|
||||
import { OidcError } from "./error";
|
||||
import { Method } from "../http-api";
|
||||
import { logger } from "../logger";
|
||||
import { NonEmptyArray } from "../@types/common";
|
||||
import { OidcClientConfig } from "./index.ts";
|
||||
import { OidcError } from "./error.ts";
|
||||
import { Method } from "../http-api/index.ts";
|
||||
import { logger } from "../logger.ts";
|
||||
import { NonEmptyArray } from "../@types/common.ts";
|
||||
|
||||
/**
|
||||
* Client metadata passed to registration endpoint
|
||||
|
||||
@@ -16,10 +16,10 @@ limitations under the License.
|
||||
|
||||
import { IdTokenClaims, OidcClient, WebStorageStateStore } from "oidc-client-ts";
|
||||
|
||||
import { AccessTokens } from "../http-api";
|
||||
import { generateScope } from "./authorize";
|
||||
import { discoverAndValidateOIDCIssuerWellKnown } from "./discovery";
|
||||
import { logger } from "../logger";
|
||||
import { AccessTokens } from "../http-api/index.ts";
|
||||
import { generateScope } from "./authorize.ts";
|
||||
import { discoverAndValidateOIDCIssuerWellKnown } from "./discovery.ts";
|
||||
import { logger } from "../logger.ts";
|
||||
|
||||
/**
|
||||
* @experimental
|
||||
|
||||
@@ -17,8 +17,8 @@ limitations under the License.
|
||||
import { jwtDecode } from "jwt-decode";
|
||||
import { IdTokenClaims, OidcMetadata, SigninResponse } from "oidc-client-ts";
|
||||
|
||||
import { logger } from "../logger";
|
||||
import { OidcError } from "./error";
|
||||
import { logger } from "../logger.ts";
|
||||
import { OidcError } from "./error.ts";
|
||||
|
||||
export type ValidatedIssuerConfig = {
|
||||
authorizationEndpoint: string;
|
||||
|
||||
Reference in New Issue
Block a user