mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 08:33:11 +00:00
build: use custom url scheme independent from appId
This commit is contained in:
@@ -21,7 +21,6 @@ import {
|
||||
} from '@openid/appauth';
|
||||
import {Browser, IAuthConfig} from 'ionic-appauth';
|
||||
import {PAIAAuthService} from '../paia/paia-auth.service';
|
||||
import config from '../../../../../capacitor.config';
|
||||
import {ConfigProvider} from '../../config/config.provider';
|
||||
import {
|
||||
SCAuthorizationProvider,
|
||||
@@ -117,6 +116,8 @@ function getEndpointsConfig(
|
||||
* Return a URL of the app, depending on the platform where it is running
|
||||
*/
|
||||
function getRedirectUrl(routePath: string): string {
|
||||
const appSchema = Capacitor.isNativePlatform() ? config.appId : 'https';
|
||||
const appSchema = Capacitor.isNativePlatform()
|
||||
? environment.custom_url_scheme
|
||||
: 'https';
|
||||
return `${appSchema}://${environment.app_host}/${routePath}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user