add validate username graphql file

This commit is contained in:
Satindar Dhillon 2022-09-08 15:49:56 -07:00
parent 7d1f1ef6fc
commit 721226c6cc
2 changed files with 4 additions and 4 deletions

View file

@ -0,0 +1,3 @@
query ValidateUsername($username: String!) {
validateUsername(username: $username)
}

View file

@ -36,7 +36,7 @@ class LoginViewModel @Inject constructor(
.distinctUntilChanged()
.asLiveData()
val registrationStateLiveData = MutableLiveData(RegistrationState.PendingUser) // TODO: set back to social login
val registrationStateLiveData = MutableLiveData(RegistrationState.SocialLogin)
fun getAuthCookieString(): String? = runBlocking {
datastoreRepo.getString(DatastoreKeys.omnivoreAuthCookieString)
@ -180,6 +180,3 @@ class LoginViewModel @Inject constructor(
}
}
}
// TODO: set registrationState to pending if user has pending token