Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>PWF AuthNew to Visual Studio Code? Get it now.
PWF Auth

PWF Auth

PWF Auth

|
2 installs
| (0) | Free
Insert PWF Auth licensing code in any language, and browse your apps, license keys and sessions without leaving the editor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PWF Auth for VS Code

Write your PWF Auth integration and manage your licences without leaving the editor.

Insert integration code

Ctrl+Shift+P → PWF Auth: Insert integration code → pick a language. The snippet is inserted at the cursor, already wired correctly:

  • C# and VB.NET — via the PWFAuth NuGet package
  • JavaScript and TypeScript — via the pwfauth npm package
  • Python — via the one-file client from your dashboard

The language of the current file is offered first. Tab-completion snippets are also registered: type pwfauth, pwfauth-license or pwfauth-sessionended.

Every template does two things people routinely get wrong:

  • It acts on the kill switch. A sessionEnded handler that only logs leaves your licence unenforceable — the ban lands, and the app keeps running. Each template actually stops the process.
  • It reads the secret from the environment rather than baking it into source.

The VB.NET template additionally marshals SessionEnded back to the UI thread, because it arrives on the heartbeat thread and touching a control from there throws.

This half needs no account and no sign-in.

Manage licences

Sign in with a Personal Access Token (dashboard → Profile → API Tokens) and the PWF Auth view in the activity bar lists your applications, their keys and each key's live state.

  • Colour-coded status — active, unused, paused, banned, expired
  • Create keys… on an application — type, duration, quantity, then copy them all
  • Ban / Unban / Pause / Resume from the key's context menu
  • Click a key for full details: devices, activation, last login, and active sessions
  • Search filters keys across the tree

State changes take effect on the user's next heartbeat — within seconds.

Where your token is stored

In VS Code's SecretStorage (the OS keychain), never in settings.json. Settings sync between machines and sit in plain text on disk; a token that grants API access does not belong there. Sign out removes it.

A token is only as scoped as you make it — mint one scoped to the app you actually want to manage.

Settings

Setting Default Purpose
pwfauth.baseUrl https://pwfauth.com Point at a private deployment
pwfauth.keysPerApp 50 Keys loaded per application in the tree

When the tree caps a list it says so, rather than quietly showing a partial view.

Requirements

VS Code 1.85+. The management half needs network access to your PWF Auth server; the code-generation half works entirely offline.

License

MIT © PWF Auth

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft