build: fix build and add examples

This commit is contained in:
2025-02-05 23:55:00 +08:00
parent f00c1d1aef
commit 58d7b3c89e
127 changed files with 1340 additions and 3841 deletions

View File

@@ -1,4 +1,4 @@
import { inject, Injectable } from 'injection-js';
import { Injectable, inject } from '@outposts/injection-js';
import { CryptoService } from '../utils/crypto/crypto.service';
@Injectable()

View File

@@ -1,4 +1,4 @@
import { Injectable, inject } from 'injection-js';
import { Injectable, inject } from '@outposts/injection-js';
import { BehaviorSubject, type Observable, from } from 'rxjs';
import { map } from 'rxjs/operators';
import { CryptoService } from '../utils/crypto/crypto.service';

View File

@@ -1,8 +1,5 @@
import { TestBed } from '@/testing';
import {
mockImplementationWhenArgs,
mockImplementationWhenArgsEqual,
} from '@/testing/spy';
import { mockImplementationWhenArgsEqual } from '@/testing/spy';
import { firstValueFrom, of } from 'rxjs';
import { vi } from 'vitest';
import type { AuthWellKnownEndpoints } from '../config/auth-well-known/auth-well-known-endpoints';

View File

@@ -1,4 +1,4 @@
import { Injectable, inject } from 'injection-js';
import { Injectable, inject } from '@outposts/injection-js';
import { type Observable, of } from 'rxjs';
import { map, mergeMap } from 'rxjs/operators';
import type { OpenIdConfiguration } from '../config/openid-configuration';

View File

@@ -1,4 +1,4 @@
import { Injectable, inject } from 'injection-js';
import { Injectable, inject } from '@outposts/injection-js';
import { base64url } from 'rfc4648';
import { type Observable, from, of } from 'rxjs';
import { map, mergeMap, tap } from 'rxjs/operators';
@@ -390,7 +390,6 @@ export class TokenValidationService {
localState: any,
configuration: OpenIdConfiguration
): boolean {
console.error(state, localState, `${state}`, `${localState}`);
if (`${state}` !== `${localState}`) {
this.loggerService.logDebug(
configuration,