1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-06 04:00:05 +00:00

fix(login): making login requet with CSRF for SASJS server

This commit is contained in:
Saad Jutt
2022-05-11 19:07:30 +05:00
parent 9d03b54fba
commit 10c72e6483
2 changed files with 24 additions and 50 deletions

View File

@@ -592,15 +592,6 @@ export default class SASjs {
'A username and password are required when using the default login mechanism.'
)
if (this.sasjsConfig.serverType === ServerType.Sasjs) {
if (!clientId)
throw new Error(
'A username, password and clientId are required when using the default login mechanism with server type SASJS.'
)
return this.authManager!.logInSasjs(username, password)
}
return this.authManager!.logIn(username, password)
}