Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit b42de827 authored by Wolf-Martell Montwé's avatar Wolf-Martell Montwé
Browse files

Replace release oauth id to allow later migration

parent 3fe2bc5f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ class TbOAuthConfigurationFactory : OAuthConfigurationFactory {
        )
    }

    // TODO: Update clientId and redirectUri once new client ID is available
    private fun createGmailConfiguration(): Pair<List<String>, OAuthConfiguration> {
        return listOf(
            "imap.gmail.com",
@@ -49,11 +50,11 @@ class TbOAuthConfigurationFactory : OAuthConfigurationFactory {
            "smtp.gmail.com",
            "smtp.googlemail.com",
        ) to OAuthConfiguration(
            clientId = "406964657835-7e8ersi8i85g742ksqdh0mtgpps3rvoq.apps.googleusercontent.com",
            clientId = "406964657835-pq5dckrt5j6ijkicfp2jf4vdhesncql6.apps.googleusercontent.com",
            scopes = listOf("https://mail.google.com/"),
            authorizationEndpoint = "https://accounts.google.com/o/oauth2/v2/auth",
            tokenEndpoint = "https://oauth2.googleapis.com/token",
            redirectUri = "${BuildConfig.APPLICATION_ID}:/oauth2redirect",
            redirectUri = "${BuildConfig.APPLICATION_ID}.desktop:/oauth2redirect",
        )
    }