-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure we do not send stale tokens on iOS (#289)
- Loading branch information
1 parent
6fad725
commit 33b3188
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
shared/data/src/androidMain/kotlin/fr/androidmakers/store/graphql/ApolloClient.android.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package fr.androidmakers.store.graphql | ||
|
||
import fr.androidmakers.domain.repo.UserRepository | ||
|
||
actual suspend fun getIdToken(userRepository: UserRepository): String? { | ||
return userRepository.getIdToken() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
shared/data/src/iosMain/kotlin/fr/androidmakers/store/graphql/ApolloClient.ios.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package fr.androidmakers.store.graphql | ||
|
||
import fr.androidmakers.domain.repo.UserRepository | ||
|
||
actual suspend fun getIdToken(userRepository: UserRepository): String? { | ||
// We do not support signin on iOS? make sure that we're not sending a stale token | ||
return null | ||
} |