Skip to content

Commit f6aea90

Browse files
committed
Forward "autoRefreshToken" to GoogleAuthPlugin
1 parent a5a9dee commit f6aea90

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/plugins/three/CesiumIonAuthPlugin.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,10 @@ export class CesiumIonAuthPlugin {
150150
tiles.rootURL = json.options.url;
151151

152152
// if the tile set is "external" then assume it's a google API tile set
153-
tiles.registerPlugin( new GoogleCloudAuthPlugin( { apiToken: url.searchParams.get( 'key' ) } ) );
153+
tiles.registerPlugin( new GoogleCloudAuthPlugin( {
154+
apiToken: url.searchParams.get( 'key' ),
155+
autoRefreshToken: this.autoRefreshToken,
156+
} ) );
154157

155158
} else {
156159

0 commit comments

Comments
 (0)