Hotfix instagram api (#6922)
* updated defaultURL to allow new insta API access * updated defaultURL to allow new insta API access * updates tests for new instagram API url Co-authored-by: Tim Talbot <tim@dyingmethod.com>
This commit is contained in:
@@ -66,7 +66,7 @@ describe('AuthenticationProviders', function () {
|
||||
});
|
||||
|
||||
it(`should provide the right responses for adapter ${providerName}`, async () => {
|
||||
const noResponse = ['twitter', 'apple', 'gcenter', "google", 'keycloak'];
|
||||
const noResponse = ['twitter', 'apple', 'gcenter', 'google', 'keycloak'];
|
||||
if (noResponse.includes(providerName)) {
|
||||
return;
|
||||
}
|
||||
@@ -527,7 +527,7 @@ describe('instagram auth adapter', () => {
|
||||
{}
|
||||
);
|
||||
expect(httpsRequest.get).toHaveBeenCalledWith(
|
||||
'https://api.instagram.com/v1/users/self/?access_token=the_token'
|
||||
'https://graph.instagram.com/me?fields=id&access_token=the_token'
|
||||
);
|
||||
});
|
||||
|
||||
@@ -544,7 +544,7 @@ describe('instagram auth adapter', () => {
|
||||
{}
|
||||
);
|
||||
expect(httpsRequest.get).toHaveBeenCalledWith(
|
||||
'https://new-api.instagram.com/v1/users/self/?access_token=the_token'
|
||||
'https://new-api.instagram.com/v1/me?fields=id&access_token=the_token'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user