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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user