Skip to main content

loginUser method

String loginUser (String email, String password)

Implementation

String loginUser(String email, String password) {
return """
mutation {
login(data: {email: "$email", password: "$password"}){
accessToken
user{
_id
firstName
lastName
email
image
joinedOrganizations{
_id
name
image
description
isPublic
creator{
_id
firstName
lastName
image
}
}
createdOrganizations{
_id
name
image
description
isPublic
creator{
_id
firstName
lastName
image
}
}
membershipRequests{
organization{
_id
name
image
description
isPublic
creator{
_id
firstName
lastName
image
}
}
}
adminFor{
_id
}
}
refreshToken
androidFirebaseOptions {
apiKey
appId
messagingSenderId
projectId
storageBucket
}
iosFirebaseOptions {
apiKey
appId
messagingSenderId
projectId
storageBucket
iosClientId
iosBundleId
}
}
}
""";
}