Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions mobile-app/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tool">
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
Expand All @@ -26,14 +26,6 @@
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https"
android:host="${auth0Domain}"
android:pathPrefix="/android/${applicationId}/callback" />
</intent-filter>
</activity>
<service android:name="com.ryanheise.audioservice.AudioService"
android:foregroundServiceType="mediaPlayback"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ class AuthenticationService {
.webAuthentication(scheme: kReleaseMode ? null : 'org.freecodecamp')
.login(useHTTPS: true, parameters: {'connection': connectionType});
}
} on WebAuthenticationException {
} on WebAuthenticationException catch (e) {

log('message: WebAuthenticationException: ${e.message}');

// NOTE: The most likely case is that the user canceled the login
snackbar.showSnackbar(
title: context.t.login_cancelled,
Expand Down Expand Up @@ -344,7 +347,7 @@ class AuthenticationService {
late final Response res;
try {
res = await _dio.get(
'$baseApiURL/user/get-session-user',
'$baseApiURL/user/session-user',
options: Options(
headers: {
'CSRF-Token': _csrfToken,
Expand Down
Loading