Remove references to Managing.Aspire.AppHost and Managing.Aspire.ServiceDefaults from solution and project files; update API project to eliminate unused references and adjust JWT token handling in Program.cs; enhance NSwag generation for Axios and Fetch clients, including new import handling.

This commit is contained in:
2025-12-14 00:18:02 +07:00
parent 0126377486
commit 2157d1f2c9
5 changed files with 72 additions and 49 deletions

View File

@@ -4,9 +4,10 @@
* API clients inherit from #AuthorizedApiBase and provide the config.
*/
import { Cookies } from 'react-cookie'
import {Cookies} from 'react-cookie'
import type IConfig from './IConfig'
export default class AuthorizedApiBase {
private readonly config: IConfig
@@ -14,7 +15,7 @@ export default class AuthorizedApiBase {
this.config = config
}
transformOptions = (options: any): Promise<RequestInit> => {
transformOptions = (options: any): Promise<any> => {
const cookies = new Cookies()
const bearerToken = cookies.get('token')
if (bearerToken) {