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" } });
|
||||
|
||||
Reference in new issue
Block a user