File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -66,30 +66,25 @@ const Phase = require('@phase.dev/phase-node')
6666Initialize the SDK with your ` token `
6767
6868``` typescript
69- const token = ' pss_service...'
69+ const token = ' pss_service...' // or process.env.PHASE_TOKEN
7070
7171const phase = new Phase (token )
72+
73+ await phase .init ()
7274```
7375
7476<Note >
7577If you are self-hosting Phase, you must also provide the protocol and host for your Phase instance:
7678
7779``` typescript
78- const token = ' pss_service...'
80+ const token = ' pss_service...' // or process.env.PHASE_TOKEN
7981const host = ' https://console.phase.dev' // default
8082
8183const phase = new Phase (token , host )
82- ```
83-
84- </Note >
8584
86- Then run ` phase.init() ` to initiate a session:
87-
88- ``` typescript
8985await phase .init ()
9086```
91-
92- ---
87+ </Note >
9388
9489## Usage
9590
You can’t perform that action at this time.
0 commit comments