File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
packages/web/app/src/pages Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,17 @@ import { zodResolver } from '@hookform/resolvers/zod';
54
54
import { RadioGroupIndicator } from '@radix-ui/react-radio-group' ;
55
55
import { Link , useRouter } from '@tanstack/react-router' ;
56
56
57
+ /**
58
+ * We previously used a different character for token masking.
59
+ * This function standardizes it by replacing all non-alphanumeric characters
60
+ * with bullet points (•) to ensure consistent formatting.
61
+ * @param tokenAlias 553••***•••&*******••••••••••••7ab
62
+ * @returns 553••••••••••••••••••7ab
63
+ */
64
+ function normalizeTokenAlias ( tokenAlias : string ) : string {
65
+ return tokenAlias . replaceAll ( / [ ^ a - z 0 - 9 ] / g, '•' ) ;
66
+ }
67
+
57
68
export const DeleteTokensDocument = graphql ( `
58
69
mutation deleteTokens($input: DeleteTokensInput!) {
59
70
deleteTokens(input: $input) {
@@ -166,7 +177,7 @@ function RegistryAccessTokens(props: {
166
177
checked = { checked . includes ( token . id ) }
167
178
/>
168
179
</ Td >
169
- < Td > { token . alias } </ Td >
180
+ < Td className = "font-mono" > { normalizeTokenAlias ( token . alias ) } </ Td >
170
181
< Td > { token . name } </ Td >
171
182
< Td align = "right" >
172
183
{ token . lastUsedAt ? (
You can’t perform that action at this time.
0 commit comments