We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b365fe9 commit 76fb579Copy full SHA for 76fb579
src/store_factory.ts
@@ -70,6 +70,23 @@ export const getStore: {
70
71
if (typeof input?.name === 'string') {
72
const { name } = input
73
+
74
+ if (typeof input?.siteID === 'string' && typeof input.token === 'string') {
75
+ const { siteID, token } = input
76
+ const clientOptions = getClientOptions(input, {
77
+ siteID,
78
+ token
79
+ })
80
81
+ if (!siteID || !token) {
82
+ throw new MissingBlobsEnvironmentError(['siteID', 'token'])
83
+ }
84
85
+ const client = new Client(clientOptions)
86
87
+ return new Store({ client, name })
88
89
90
const clientOptions = getClientOptions(input)
91
92
if (!name) {
0 commit comments