appwrite / appwrite/sdk-for-android
🐛 Bug Report: Cookie Error
- Dominant language
- Kotlin
- Stars
- 154
- Forks
- 30
- Avg merge
- 5h 41m
- Merged PRs (30d)
- 3
Description
### 👟 Reproduction steps
When I try to auth with google in android the below error returns
code: https://github.com/202420505/APPWRITE-GOOGLE-AUTH
🔽LOG🔽
```
07-24 10:55:09.815 27458 27458 E AndroidRuntime: FATAL EXCEPTION: main
07-24 10:55:09.815 27458 27458 E AndroidRuntime: Process: me.moontree.test.appwrite.auth.app1, PID: 27458
07-24 10:55:09.815 27458 27458 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{me.moontree.test.appwrite.auth.app1/io.appwrite.views.CallbackActivity}: io.appwrite.exceptions.AppwriteException: Authentication cookie missing!
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4454)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4685)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:112)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:174)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:109)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:81)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2895)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:257)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.os.Looper.loop(Looper.java:342)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:9634)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:619)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: Caused by: io.appwrite.exceptions.AppwriteException: Authentication cookie missing!
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at io.appwrite.services.Account$createOAuth2Session$3.invoke(Account.kt:1153)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at io.appwrite.services.Account$createOAuth2Session$3.invoke(Account.kt:1143)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at io.appwrite.WebAuthComponent$Companion.onCallback(WebAuthComponent.kt:85)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at io.appwrite.views.CallbackActivity.onCreate(CallbackActivity.kt:16)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:9363)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:9332)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1526)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4436)
07-24 10:55:09.815 27458 27458 E AndroidRuntime: ... 13 more
```
### 👍 Expected behavior
It should return a proper cookies
### 👎 Actual Behavior
It actually returns a error and the app crashes
### 🎲 Appwrite version
Appwrite Cloud
### 💻 Operating system
Something else
### 🧱 Your Environment
I used android 15 in samsung One UI 7.0
Used Android SDK Latest Version (8.1.0)
### 👀 Have you spent some time to check if this issue has been raised before?
- [x] I checked and didn't find similar issue
### 🏢 Have you read the Code of Conduct?
- [x] I have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md)
Contributor guide
Assessment
This issue has not been assessed yet.