mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
correct mutation authenticate
This commit is contained in:
parent
92e6e88fe2
commit
6f321cb9dc
@ -57,7 +57,7 @@ export class AuthenticationClient {
|
||||
const { data } = await this.client.rawRequest<any>(authenticate, { args })
|
||||
logger.debug('Authentication: after authenticate: data:', data)
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||
const authUuid: string = data?.authenticate.uuid
|
||||
const authUuid: string = data?.authenticate
|
||||
if (authUuid) {
|
||||
logger.debug('Authentication: received authenticated uuid', authUuid)
|
||||
return authUuid
|
||||
|
||||
@ -2,8 +2,6 @@ import { gql } from 'graphql-request'
|
||||
|
||||
export const authenticate = gql`
|
||||
mutation ($args: AuthenticationArgs!) {
|
||||
authenticate(data: $args) {
|
||||
uuid
|
||||
}
|
||||
authenticate(data: $args)
|
||||
}
|
||||
`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user