Add common audiences to wallet config
This commit is contained in:
@@ -617,7 +617,7 @@ class AuthController extends Controller
|
||||
$fingerPrint = $request->input('fingerPrint');
|
||||
|
||||
// Check if audience is allowed
|
||||
$allowedAudiences = [config('intaleq.allowed_wallet_1'), config('intaleq.allowed_wallet_2')];
|
||||
$allowedAudiences = config('intaleq.wallet_allowed_audiences', []);
|
||||
if (!in_array($audience, $allowedAudiences)) {
|
||||
return $this->failure('Invalid audience');
|
||||
}
|
||||
|
||||
@@ -63,6 +63,8 @@ return [
|
||||
'wallet_hmac_secret' => env('SECRET_KEY_HMAC'),
|
||||
'wallet_allowed_audiences' => [
|
||||
'Tripz-Wallet',
|
||||
'Tripz-Walletandroid',
|
||||
'Tripz-Walletios',
|
||||
'TripzWallet:android',
|
||||
'TripzWallet:ios',
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user