#[SOLVED] The current user is not authorized to perform the requested action.

19 messages · Page 1 of 1 (latest)

floral nova
#

Hi,
I'am using Android SDK and after createEmailSession i receive "The current user is not authorized to perform the requested action." when ai try to query database

floral nova
#

override suspend fun login(email: String, password: String): Response<Session, Exception> {
return try {
Response.Success(account.createEmailSession(email, password))
}catch (e: Exception){
Response.Failure(e)
}
}

#

var respose = databases.getDocument(
databaseId = Constants.AppWriteData.db_id,
collectionId = Constants.AppWriteData.Collections.admins_id,
documentId = userId
).toMap()

#

client it's injected

#

For database needs add headers in client?

green pebble
floral nova
#

Where I can check collection permissions?

#

Yes, I'm sure. The get document happens after login

green pebble
floral nova
#

Ooo, thx a lot!!

green pebble
floral nova
#

Yes

#

Can you help my with "
SMTP is disabled on your Appwrite instance. You can <a href="/docs/email-delivery">learn more about setting up SMTP</a> in our docs." too?

green pebble
#

[SOLVED] The current user is not authorized to perform the requested action.

plain spoke
#

where can i find AppWrites' android studio JAVA documentation?

green pebble
plain spoke