-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore (examples): Add authentication to the examples (#2248)
Updated GH Actions all SST scripts to use the necessary tokens to reach the admin-api --------- Co-authored-by: Valter Balegas <[email protected]>
- Loading branch information
Showing
25 changed files
with
455 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export const baseUrl = import.meta.env.VITE_ELECTRIC_URL | ||
? new URL(import.meta.env.VITE_ELECTRIC_URL).origin | ||
: `http://localhost:3000` | ||
export const token = import.meta.env.VITE_ELECTRIC_TOKEN ?? `` | ||
export const databaseId = import.meta.env.VITE_DATABASE_ID ?? `` | ||
export const source_secret = import.meta.env.VITE_ELECTRIC_SOURCE_SECRET ?? `` | ||
export const source_id = import.meta.env.VITE_ELECTRIC_SOURCE_ID ?? `` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { ShapeStreamOptions } from '@electric-sql/client' | ||
import { baseUrl, databaseId, token } from './electric' | ||
import { baseUrl, source_id, source_secret } from './electric' | ||
|
||
export const issueShape: ShapeStreamOptions = { | ||
url: `${baseUrl}/v1/shape/`, | ||
params: { | ||
table: `issue`, | ||
token, | ||
source_id: databaseId, | ||
source_secret, | ||
source_id, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.