Skip to main content
Glama

nworks_logout

Remove all saved authentication credentials and tokens for NAVER WORKS to securely end your session.

Instructions

저장된 NAVER WORKS 인증 정보와 토큰을 모두 삭제합니다

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Implementation of the nworks_logout tool, which clears credentials and revokes tokens.
    server.tool(
      "nworks_logout",
      "저장된 NAVER WORKS 인증 정보와 토큰을 모두 삭제합니다",
      {},
      async () => {
        try {
          try {
            const creds = await loadCredentials();
            const token = await loadToken();
            const userToken = await loadUserToken();
            if (token?.accessToken) {
              await revokeToken(token.accessToken, creds.clientId, creds.clientSecret);
            }
            if (userToken?.refreshToken) {
              await revokeToken(userToken.refreshToken, creds.clientId, creds.clientSecret);
            }
          } catch {
            // best-effort
          }
          await clearCredentials();
          return {
            content: [
              {
                type: "text" as const,
                text: JSON.stringify({
                  success: true,
                  message: "인증 정보와 토큰이 모두 삭제되었습니다. 다시 사용하려면 nworks_setup tool로 재설정 후 nworks_login_user로 브라우저 로그인하세요.",
                }),
              },
            ],
          };
        } catch (err) {
          return {
            content: [{ type: "text" as const, text: mcpErrorHint(err) }],
            isError: true,
          };
        }
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yjcho9317/nworks'

If you have feedback or need assistance with the MCP directory API, please join our Discord server