google / google/GTMAppAuth

Keychain sharing not working with app extension

Open
#95 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
448
Forks
247
Avg merge
2d 8h
Merged PRs (30d)
5

Description

I am currently trying to access the last logged in user of the main app in an app extension. It seems that although keychain sharing is enabled in both and the main app and extension are in the same app group, the extension does not access the same keychain to restore the session.
I first found this out when I implemented the login via GoogleSignIn.
The function `restorePrevoiusSignIn()` works in the Main App as expected but not in the App Extension.
Now that I have checked the source code of GTMAppAuth, it seems that the AccessGroup is not defined anywhere (and if so, where can it be defined)?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.