@fonderie/client 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/brain/signatures.md +1 -0
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/brain/signatures.md
CHANGED
|
@@ -142,6 +142,7 @@ interface IUpdateProfileInput {
|
|
|
142
142
|
new AuthClient(http: HttpClient, tokens: TokenStore): AuthClient
|
|
143
143
|
.mfa: MfaClient
|
|
144
144
|
.setAccessToken(token: string | undefined): void
|
|
145
|
+
.providers(): Promise<IApiResponse<IAuthProvidersResult>>
|
|
145
146
|
.register(input: IRegisterInput): Promise<IApiResponse<IRegisterResult>>
|
|
146
147
|
.login(input: ILoginInput): Promise<IApiResponse<ILoginResult | IMfaRequiredResult>>
|
|
147
148
|
.appleNative(input: IAppleNativeInput): Promise<IApiResponse<ILoginResult>>
|
package/dist/index.cjs
CHANGED
|
@@ -280,6 +280,21 @@ var AuthClient = class {
|
|
|
280
280
|
if (!token) this.http.clearCache();
|
|
281
281
|
}
|
|
282
282
|
// ── Public ─────────────────────────────────────────────────────────────────
|
|
283
|
+
/**
|
|
284
|
+
* Which sign-in methods this deployment can actually honour.
|
|
285
|
+
*
|
|
286
|
+
* Public — the login screen needs it before anyone has signed in. Ask the
|
|
287
|
+
* server rather than shipping a build-time flag: the flag stores the same
|
|
288
|
+
* fact twice and lets the two disagree, and the symptom is a user clicking
|
|
289
|
+
* a provider the server cannot complete and landing on the provider's own
|
|
290
|
+
* error page, which the app cannot explain.
|
|
291
|
+
*/
|
|
292
|
+
providers() {
|
|
293
|
+
return this.http.request({
|
|
294
|
+
method: "GET",
|
|
295
|
+
path: "/auth/providers"
|
|
296
|
+
});
|
|
297
|
+
}
|
|
283
298
|
register(input) {
|
|
284
299
|
return this.http.request({
|
|
285
300
|
method: "POST",
|