Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

Commit 064ad79

Browse files
authored
Merge pull request #16 from workos/feature/sup-919-typescript-example-app-audit-logs-app
Audit Logs Example App Revamp and Audit
2 parents d407e0b + ea3970c commit 064ad79

14 files changed

Lines changed: 2703 additions & 1294 deletions

File tree

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
node_modules
21
.env
3-
out/
4-
tsconfig.tsbuildinfo
2+
node_modules

typescript-audit-logs-example/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,21 @@ An example Node.js / TypeScript application demonstrating how to use the [WorkOS
4343
WORKOS_CLIENT_ID=project_xxxxxxxxxxxx
4444
```
4545

46-
## Testing the Integration
46+
## Run the development server
4747

48-
5. Start the server and head to `http://localhost:8000/ to begin the login flow!
48+
```sh
49+
npm run dev
50+
```
51+
52+
## Compile TypeScript code and run the server
4953

5054
```sh
55+
npm run build
5156
npm start
5257
```
5358

59+
Head to `http://localhost:8000/` to begin the flow!
60+
5461
## Audit Logs setup
5562

5663
Follow the [Audit Logs configuration steps](https://workos.com/docs/audit-logs/emit-an-audit-log-event/sign-in-to-your-workos-dashboard-account-and-configure-audit-log-event-schemas) to set up the following 5 events that are sent with this example:

typescript-audit-logs-example/audit_log_events.js

Lines changed: 0 additions & 96 deletions
This file was deleted.

typescript-audit-logs-example/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const express = require('express')
22
import 'dotenv/config.js'
3-
const router = require('./routes/index.ts')
3+
import router from './routes/index'
44
import morgan from 'morgan'
55

66
const app = express()

0 commit comments

Comments
 (0)