mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-29 05:35:41 +00:00
rework review comments
This commit is contained in:
parent
f43fcc0dd9
commit
44883266c7
@ -31,7 +31,7 @@ export class AuthenticationClient {
|
||||
methodLogger.addContext('handshakeID', args.handshakeID)
|
||||
methodLogger.debug('openConnectionCallback with endpoint', this.endpoint, args)
|
||||
try {
|
||||
const { data } = await this.client.rawRequest<any>(openConnectionCallback, { args })
|
||||
const { data } = await this.client.rawRequest<{ openConnectionCallback: boolean }>(openConnectionCallback, { args })
|
||||
methodLogger.debug('after openConnectionCallback: data:', data)
|
||||
|
||||
if (!data || !data.openConnectionCallback) {
|
||||
@ -51,10 +51,10 @@ export class AuthenticationClient {
|
||||
methodLogger.addContext('handshakeID', args.handshakeID)
|
||||
methodLogger.debug('authenticate with endpoint=', this.endpoint)
|
||||
try {
|
||||
const { data } = await this.client.rawRequest<any>(authenticate, { args })
|
||||
const { data } = await this.client.rawRequest<{ authenticate: string }>(authenticate, { args })
|
||||
methodLogger.debug('after authenticate: data:', data)
|
||||
|
||||
const responseJwt: string = data?.authenticate
|
||||
const responseJwt = data?.authenticate
|
||||
if (responseJwt) {
|
||||
methodLogger.debug('received authenticated uuid as jwt', responseJwt)
|
||||
return responseJwt
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user