spectacles-auth

Installation
SKILL.md

Spectacles AuthKit — OAuth2 Guide

The AuthKit pattern provides OAuth2 authentication in a Lens using DeepLinkModule to open a web browser on the user's Spectacles or Phone, and then catch the redirect URL to harvest the authorization code or implicit token.

Capabilities Required: Both Internet Access and Deep Link must be enabled in the Project Settings. Editor Limitation: Authorization using DeepLinks is not supported in the Lens Studio Editor; test this on-device.


Architecture Overview

AuthKit separates responsibilities into:

  1. OAuth2 Flow: Managing PKCE, code_verifier, state, and swapping codes for tokens.
  2. TokenManager: Securely storing tokens using GeneralDataStore.
  3. DeepLinkModule: Firing the authorize intent and waiting for the onUriReceived callback.
  4. InternetModule: Calling the provider's /oauth/token endpoint.

Related skills

More from rolandsmeenk/lensstudioagents

Installs
4
GitHub Stars
5
First Seen
Mar 28, 2026