Skip to content

Commit

Permalink
FR-13828 - clear cookies after logout and disable hosted actvitiy by …
Browse files Browse the repository at this point in the history
…default
  • Loading branch information
frontegg-david committed Oct 18, 2023
1 parent 5ef1729 commit cb20993
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

<activity
android:name="com.frontegg.android.HostedAuthActivity"
android:enabled="false"
android:exported="true">
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
Expand Down
1 change: 1 addition & 0 deletions android/src/main/java/com/frontegg/android/FronteggAuth.kt
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ class FronteggAuth(
val logoutCookies = getDomainCookie(baseUrl)
val logoutAccessToken = accessToken.value

CookieManager.getInstance().removeAllCookies(null)
if (logoutCookies != null &&
logoutAccessToken != null &&
FronteggApp.getInstance().isEmbeddedMode
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
</intent-filter>
</activity>

<activity android:name="com.frontegg.android.EmbeddedAuthActivity" tools:node="remove"/>
<activity android:name="com.frontegg.android.EmbeddedAuthActivity" tools:replace="android:enabled" android:enabled="false"/>
<activity android:name="com.frontegg.android.HostedAuthActivity" tools:replace="android:enabled" android:enabled="true"/>
</application>

</manifest>

0 comments on commit cb20993

Please sign in to comment.