Skip to content

Commit

Permalink
Add Internal: true
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Feb 5, 2024
1 parent c74b853 commit f7ecf27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

## Version History

### v3.0.1

- :bug: Add `internal: true`

### v3.0.0

- :rocket: Use new token strategy
Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default class TaskBase {

// This is just a helper function for local development, signing with the (unsecure) default secret
if (!this.etl.token && (new URL(this.etl.api)).hostname === 'localhost') {
this.etl.token = `etl.${jwt.sign({ access: 'layer', id: parseInt(this.etl.layer) }, 'coe-wildland-fire')}`
this.etl.token = `etl.${jwt.sign({ access: 'layer', id: parseInt(this.etl.layer), internal: true }, 'coe-wildland-fire')}`
}

if (!this.etl.token) throw new Error('No ETL Token Provided');
Expand Down

0 comments on commit f7ecf27

Please sign in to comment.