UNPKG
@proofkit/fmdapi
Version:
beta (5.0.3-beta.1)
latest (5.0.2)
5.0.3-beta.1
5.0.3-beta.0
5.0.2
5.0.1
5.0.1-beta.3
5.0.1-beta.2
5.0.1-beta.1
5.0.0
5.0.0-beta.0
FileMaker Data API client
github.com/proofgeist/fm-dapi
proofgeist/fm-dapi
@proofkit/fmdapi
/
src
/
tokenStore
/
types.ts
8 lines
(7 loc)
•
250 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
type
MaybePromise
<T> =
Promise
<T> | T;
export
type
TokenStoreDefinitions
= {
getKey
?:
() =>
string
;
getToken
:
(
key
:
string
) =>
MaybePromise
<
string
|
null
>;
setToken
:
(
key
:
string
,
value
:
string
) =>
void
;
clearToken
:
(
key
:
string
) =>
void
; };