Skip to content

Commit

Permalink
less is more
Browse files Browse the repository at this point in the history
  • Loading branch information
jgravois committed Jul 17, 2018
1 parent 18c3a7f commit 5d3c349
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/arcgis-rest-auth/src/UserSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,7 @@ export class UserSession implements IAuthenticationManager {
*/
getToken(url: string) {
if (
/^https?:\/\/\S+\.maps.arcgis\.com\/sharing\/rest|^https?:\/\/www\.arcgis\.com\/sharing\/rest/.test(
this.portal
) &&
/^https?:\/\/\S+\.arcgis\.com\/sharing\/rest/.test(this.portal) &&
/^https?:\/\/\S+\.arcgis\.com.+/.test(url)
) {
return this.getFreshToken();
Expand Down

0 comments on commit 5d3c349

Please sign in to comment.