Skip to content

Commit 9c6c091

Browse files
committed
reset authenticatorId to nounspace instead of blankspace
1 parent 24f8ae5 commit 9c6c091

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

docs/ARCHITECTURE/AUTHENTICATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ const { callMethod } = useAuthenticatorManager();
217217

218218
const result = await callMethod({
219219
requestingFidgetId: 'my-fidget',
220-
authenticatorId: 'farcaster:blankspace',
220+
authenticatorId: 'farcaster:nounspace',
221221
methodName: 'getUserInfo'
222222
});
223223
```

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const compat = new FlatCompat({
1818
});
1919

2020
export default defineConfig([
21-
globalIgnores(["**/node_modules/", "**/dist/", "**/.next/", "src/assets", "**/*.config.js", "**/*.config.mjs", "**/next-env.d.ts", "**/public/sw.js"]),
21+
globalIgnores(["**/docs-site/", "**/node_modules/", "**/dist/", "**/.next/", "src/assets", "**/*.config.js", "**/*.config.mjs", "**/next-env.d.ts", "**/public/sw.js"]),
2222
{
2323
extends: [
2424
...compat.extends("eslint:recommended"),

src/app/(spaces)/PublicSpace.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
isProposalSpace,
2424
isChannelSpace,
2525
} from "@/common/types/spaceData";
26-
const FARCASTER_BLANKSPACE_AUTHENTICATOR_NAME = "farcaster:blankspace";
26+
const FARCASTER_BLANKSPACE_AUTHENTICATOR_NAME = "farcaster:nounspace";
2727

2828
interface PublicSpaceProps {
2929
spacePageData: SpacePageData;

src/common/lib/hooks/useCurrentFid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useAppStore } from "@/common/data/stores/app";
22

33
export const useCurrentFid = (): number | null => {
44
return useAppStore((state) => {
5-
const fid = state.account.authenticatorConfig["farcaster:blankspace"]?.data
5+
const fid = state.account.authenticatorConfig["farcaster:nounspace"]?.data
66
?.accountFid as number | null | undefined;
77
return !fid || fid === 1 ? null : fid;
88
});

src/common/providers/LoggedInStateProvider.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,21 +159,21 @@ const LoggedInStateProvider: React.FC<LoggedInLayoutProps> = ({ children }) => {
159159
if (currentIdentity.associatedFids.length === 0) {
160160
const fidResult = (await authenticatorManager.callMethod({
161161
requestingFidgetId: "root",
162-
authenticatorId: "farcaster:blankspace",
162+
authenticatorId: "farcaster:nounspace",
163163
methodName: "getAccountFid",
164164
isLookup: true,
165165
})) as { value: number };
166166
const publicKeyResult = (await authenticatorManager.callMethod({
167167
requestingFidgetId: "root",
168-
authenticatorId: "farcaster:blankspace",
168+
authenticatorId: "farcaster:nounspace",
169169
methodName: "getSignerPublicKey",
170170
isLookup: true,
171171
})) as { value: Uint8Array };
172172
const signForFid = async (messageHash) => {
173173
const signResult = (await authenticatorManager.callMethod(
174174
{
175175
requestingFidgetId: "root",
176-
authenticatorId: "farcaster:blankspace",
176+
authenticatorId: "farcaster:nounspace",
177177
methodName: "signMessage",
178178
isLookup: false,
179179
},
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default ["farcaster:blankspace"];
1+
export default ["farcaster:nounspace"];

src/fidgets/farcaster/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import { indexOf } from "lodash";
77
import { err, ok } from "neverthrow";
88
import { useEffect, useState } from "react";
99

10-
export const FARCASTER_AUTHENTICATOR_NAME = "farcaster:blankspace";
10+
export const FARCASTER_AUTHENTICATOR_NAME = "farcaster:nounspace";
1111

1212
const createFarcasterSignerFromAuthenticatorManager = async (
1313
authenticatorManager: AuthenticatorManager,
1414
fidgetId: string,
15-
authenticatorName: string = "farcaster:blankspace",
15+
authenticatorName: string = "farcaster:nounspace",
1616
): Promise<Signer> => {
1717
const schemeResult = await authenticatorManager.callMethod({
1818
requestingFidgetId: fidgetId,
@@ -58,7 +58,7 @@ const createFarcasterSignerFromAuthenticatorManager = async (
5858

5959
export function useFarcasterSigner(
6060
fidgetId: string,
61-
authenticatorName: string = "farcaster:blankspace",
61+
authenticatorName: string = "farcaster:nounspace",
6262
) {
6363
const authenticatorManager = useAuthenticatorManager();
6464
const [isLoadingSigner, setIsLoadingSigner] = useState(true);

0 commit comments

Comments
 (0)