{{! Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0 }} {{! This DataSource just permanently listens to any changes to the users }} {{! token, whether thats a new token, a changed token or a deleted token }} {{! This DataSink is just used for logging in from the form, }} {{! or logging out via the exposed logout function }} {{#let (hash login=(action sink.open) logout=(action sink.open null) token=token ) as |api|}} {{yield api to="authorized"}} {{yield api to="unauthorized"}} {{/let}}