-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
416b04d
commit ee312a3
Showing
8 changed files
with
71 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,3 @@ | ||
import { Client } from '../client/client.js' | ||
import { DeviceId } from '../device/device-id.js' | ||
import { ClientAuth, OAuthClientId } from '../token/token-store.js' | ||
import { Awaitable } from '../util/awaitable.js' | ||
import { Sub } from './account-store.js' | ||
// https://github.com/typescript-eslint/typescript-eslint/issues/8902 | ||
// eslint-disable-next-line | ||
import { AccountStore } from './account-store.js' | ||
|
||
/** | ||
* Allows disabling the call to {@link AccountStore.addAuthorizedClient} based | ||
* on the account, client and clientAuth (not all these info are available to | ||
* the store method). | ||
*/ | ||
export type AccountAddAuthorizedClient = ( | ||
deviceId: DeviceId, | ||
account: Sub, | ||
clientId: OAuthClientId, | ||
data: { | ||
client: Client | ||
clientAuth: ClientAuth | ||
}, | ||
) => Awaitable<boolean> | ||
|
||
export type AccountHooks = { | ||
onAccountAddAuthorizedClient?: AccountAddAuthorizedClient | ||
// | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.