oauth
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v161View latest version
Test the @std/oauth library using Playwright MCP tools.
- Val Town MCP server access
- Playwright MCP tools (
mcp__playwright__*)
mcp__playwright__browser_navigate({
url: "https://std--91178458b42e11f0b6f30224a6c84d84.web.val.run"
});
mcp__playwright__browser_click({
element: "Log in link",
ref: "e5"
});
Expected: Redirects to Val Town OAuth authorization page
mcp__playwright__browser_click({
element: "Allow button",
ref: "e18"
});
Expected: Redirects back to app, shows "Logged in as: [username]"
Navigate to home page again - should still be logged in.
mcp__playwright__browser_click({
element: "Log out link",
ref: "e6"
});
Expected: Returns to logged out state
- OAuth authorization flow
- Session cookie creation
- User data from ID token
- Encrypted sessions
- Logout
- Sessions last 30 days
- User data stored in encrypted cookie
- No database required