MCPcopy Create free account
hub / github.com/TryCatchLearn/Overflow / RegisterButton

Function RegisterButton

webapp/src/components/nav/RegisterButton.tsx:3–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import {Button} from "@heroui/button";
2
3export default function RegisterButton() {
4 const clientId = 'nextjs';
5 const issuer = process.env.AUTH_KEYCLOAK_ISSUER;
6 const redirectUrl = process.env.AUTH_URL!;
7
8 const registerUrl = `${issuer}/protocol/openid-connect/registrations` +
9 `?client_id=${clientId}&redirect_uri=` +
10 `${encodeURIComponent(redirectUrl)}&response_type=code&scope=openid`;
11
12 return (
13 <Button
14 as='a'
15 href={registerUrl}
16 color='secondary'>Register</Button>
17 )
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…