0.0.0 • Published 12 months ago
@openauthjs/example-client-astro v0.0.0
OpenAuth Astro Client
The files to note are
src/auth.ts- creates the client that is used to interact with the auth serversrc/middleware.ts- middleware that runs to verify access tokens, refresh them if out of date, and redirect the user to the auth server if they are not logged insrc/pages/callback.ts- the callback endpoint that receives the auth code and exchanges it for an access/refresh token