mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add validate username graphql file
This commit is contained in:
parent
7d1f1ef6fc
commit
721226c6cc
2 changed files with 4 additions and 4 deletions
|
|
@ -0,0 +1,3 @@
|
|||
query ValidateUsername($username: String!) {
|
||||
validateUsername(username: $username)
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue