fix(custom-widgets): refine v2 authoring
This commit is contained in:
124 files changed
+2089
-913
No files matched your search
@@ -112,9 +112,6 @@ export class WorkshopClient {
|
||||
|
||||
public async signInWithGitHub() {
|
||||
try {
|
||||
const methods = await this.pocketBase.collection("users").listAuthMethods();
|
||||
if (!methods.oauth2.providers.some((provider) => provider.name === "github"))
|
||||
throw new WorkshopError("unavailable", "GitHub login is not configured");
|
||||
await this.pocketBase
|
||||
.collection("users")
|
||||
.authWithOAuth2({ provider: "github", createData: { displayName: "Community member" } });
|
||||
|
||||
@@ -151,8 +151,7 @@ function containsCredentialLikeValue(widget: z.infer<typeof customWidgetImportSc
|
||||
containsCredential(request.bodyTemplate, "", sensitiveName) ||
|
||||
containsCredential(request.queryTemplate, "", sensitiveName),
|
||||
) ||
|
||||
containsCredential(widget.defaultOptions, "", sensitiveName) ||
|
||||
containsCredential(widget.defaultState, "", sensitiveName)
|
||||
containsCredential(widget.defaultOptions, "", sensitiveName)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user