Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions __fixtures__/test-project/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"dependencies": {
"@redwoodjs/api": "3.2.0",
"@redwoodjs/auth-providers-api": "^0.0.1",
"@redwoodjs/graphql-server": "3.2.0"
}
}
1 change: 1 addition & 0 deletions __fixtures__/test-project/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"dependencies": {
"@redwoodjs/auth": "3.2.0",
"@redwoodjs/auth-providers-web": "^0.0.1",
"@redwoodjs/forms": "3.2.0",
"@redwoodjs/router": "3.2.0",
"@redwoodjs/web": "3.2.0",
Expand Down
10 changes: 2 additions & 8 deletions packages/auth-providers-setup/src/dbAuth/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,10 @@ export const handler = async ({
webAuthn,
webPackages: webAuthn
? webAuthnWebPackages
: [
// TODO: Add this when packages are published
// '@redwoodjs/auth-providers-web'
],
: ['@redwoodjs/auth-providers-web'],
apiPackages: webAuthn
? webAuthnApiPackages
: [
// TODO: Add this when packages are published
// '@redwoodjs/auth-providers-api'
],
: ['@redwoodjs/auth-providers-api'],
extraTask: webAuthn ? webAuthnExtraTask : extraTask,
notes: webAuthn ? webAuthnNotes : notes,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export { extraTask } from './setupData'

// required packages to install on the web side
export const webPackages = [
// '@redwoodjs/auth-providers-web',
'@redwoodjs/auth-providers-web',
'@simplewebauthn/browser',
]

// required packages to install on the api side
export const apiPackages = [
// '@redwoodjs/auth-providers-api',
'@redwoodjs/auth-providers-api',
'@simplewebauthn/server',
]

Expand Down
2 changes: 1 addition & 1 deletion packages/cli-helpers/src/auth/setupHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const standardAuthHandler = async ({
const tasks = new Listr<never>(
[
generateAuthApiFiles(basedir, provider, force, webAuthn),
addAuthConfigToWeb(basedir, provider),
addAuthConfigToWeb(basedir, provider, webAuthn),
addAuthConfigToGqlApi(authDecoderImport),
addWebPackages(webPackages, rwVersion),
addApiPackages(apiPackages),
Expand Down