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

style: lint

This commit is contained in:
2021-03-28 18:40:22 +02:00
parent 28370341d8
commit 23db0ac80d

View File

@@ -82,12 +82,16 @@ export class AuthManager {
* @returns - a promise which resolves with an object containing two values - a boolean `isLoggedIn`, and a string `userName`. * @returns - a promise which resolves with an object containing two values - a boolean `isLoggedIn`, and a string `userName`.
*/ */
public async checkSession() { public async checkSession() {
const { result: loginResponse } = await this.requestClient.get<string>( const { result: loginResponse } = await this.requestClient
`${this.serverUrl}/${this.serverType === 'SASVIYA' ? 'SASJobExecution' : 'SASStoredProcess'}`, .get<string>(
`${this.serverUrl}/${
this.serverType === 'SASVIYA' ? 'SASJobExecution' : 'SASStoredProcess'
}`,
undefined, undefined,
'text/plain' 'text/plain'
).catch((err: any) => { )
return {result: 'authErr'} .catch((err: any) => {
return { result: 'authErr' }
}) })
const isLoggedIn = loginResponse !== 'authErr' const isLoggedIn = loginResponse !== 'authErr'