Authentication of Api #1133
Replies: 4 comments
-
I may be wrong here but the method login in the example belongs on the auth? In your case it should be on the v3 property? api in example is v3 in your case. |
Beta Was this translation helpful? Give feedback.
-
Hi @florian30491 ! |
Beta Was this translation helpful? Give feedback.
-
also @mackehansson @florian30491 better to remove v3 from your api and use By default swagger-typescript-api will generate single namespace for routes with name 0 1 2 that is values for flag |
Beta Was this translation helpful? Give feedback.
-
const result = api.login.auth() // not secure, return token for all other secure requests api.setSecurityData(result.token) and each http client provides the
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I have a problem to use the typescript api generator.
In the examples of the api generator there is a possibility to set username and password for the api, see image below.
Unfortunatly my api does not show how these options with the authentication login, see image below.
I can just set some securityData options, but for me it is not clear how to pass the security worker options. Especially with username and password.
Maybe someone can help me here ?
Thanks in advance.
BR,
Florian
Beta Was this translation helpful? Give feedback.
All reactions