Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
ci: 💚 fix ci env
Browse files Browse the repository at this point in the history
  • Loading branch information
willin committed Dec 4, 2023
1 parent 8f951f5 commit 77b879c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ jobs:
uses: paambaati/codeclimate-action@v5
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
SSO_ID: x
SSO_SECRET: x
with:
coverageCommand: bun run coverage
coverageLocations: ./.coverage/lcov.info:lcov
5 changes: 4 additions & 1 deletion src/app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ declare global {
namespace App {
// interface Error {}
interface Locals {
user: unknown;
user?: {
invalid?: boolean;
[key: string]: unknown;
};
}
// interface PageData {}
interface Platform {
Expand Down
8 changes: 4 additions & 4 deletions src/routes/sso.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SSO_ID, SSO_SECRET } from '$env/static/private';
import { env } from '$env/dynamic/private';
import { Authenticator } from '$lib/index.js';
import { SSOStrategy } from '@svelte-dev/auth-sso';

Expand All @@ -8,12 +8,12 @@ const authenticator = new Authenticator({

const ssoStrategy = new SSOStrategy(
{
clientID: SSO_ID,
clientSecret: SSO_SECRET,
clientID: env.SSO_ID,
clientSecret: env.SSO_SECRET,
callbackURL: 'http://localhost:8788/auth/sso/callback'
// 'https://svelte-auth.js.cool/auth/sso/callback'
},
async ({ profile }) => {
async ({ profile }: { profile: Record<string, unknown> }) => {
// Get the user data from your DB or API using the tokens and profile
return profile;
}
Expand Down

0 comments on commit 77b879c

Please sign in to comment.