feat: change scheme mobile
This commit is contained in:
@@ -38,7 +38,7 @@ class StravaController extends Controller
|
|||||||
->all();
|
->all();
|
||||||
|
|
||||||
$query = http_build_query($params, '', '&', PHP_QUERY_RFC3986);
|
$query = http_build_query($params, '', '&', PHP_QUERY_RFC3986);
|
||||||
$url = 'dailymeal://strava/callback'.($query ? "?{$query}" : '');
|
$url = 'bowli://strava/callback'.($query ? "?{$query}" : '');
|
||||||
|
|
||||||
return redirect()->away($url);
|
return redirect()->away($url);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ it('redirects the strava web callback to the mobile app', function () {
|
|||||||
|
|
||||||
$this
|
$this
|
||||||
->get("/strava/callback?{$query}")
|
->get("/strava/callback?{$query}")
|
||||||
->assertRedirect("dailymeal://strava/callback?{$query}");
|
->assertRedirect("bowli://strava/callback?{$query}");
|
||||||
});
|
});
|
||||||
|
|
||||||
it('stores strava tokens from an authorization code', function () {
|
it('stores strava tokens from an authorization code', function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user