mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-18 09:30:06 +00:00
style: lint
This commit is contained in:
@@ -82,13 +82,17 @@ 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>(
|
||||||
undefined,
|
`${this.serverUrl}/${
|
||||||
'text/plain'
|
this.serverType === 'SASVIYA' ? 'SASJobExecution' : 'SASStoredProcess'
|
||||||
).catch((err: any) => {
|
}`,
|
||||||
return {result: 'authErr'}
|
undefined,
|
||||||
})
|
'text/plain'
|
||||||
|
)
|
||||||
|
.catch((err: any) => {
|
||||||
|
return { result: 'authErr' }
|
||||||
|
})
|
||||||
|
|
||||||
const isLoggedIn = loginResponse !== 'authErr'
|
const isLoggedIn = loginResponse !== 'authErr'
|
||||||
let loginForm = null
|
let loginForm = null
|
||||||
|
|||||||
Reference in New Issue
Block a user