Answer the question
In order to leave comments, you need to log in
How to pass JWT header to Swagger request?
Good evening, please help
I have a function that uses Swagger for queries.
export async function SwaggerClient() {
return Swagger({ url: window.App.apiUrl })
}
SwaggerClient({
url: '/api/profiles',
method: 'GET',
})
.then(response => {
console.log('getProfile', response)
})
.catch(error => {
console.log('getProfileError', error)
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question