feat: authentication with OAuth
All checks were successful
ci / ci (push) Successful in 19m53s

This commit is contained in:
2025-12-07 21:27:23 +01:00
parent 4e9b4a19b8
commit ea28a87860
25 changed files with 3143 additions and 1468 deletions

View File

@@ -0,0 +1,36 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId('_pb_users_auth_')
// update collection data
unmarshal({
oauth2: {
enabled: true
},
otp: {
enabled: true
},
passwordAuth: {
enabled: false
}
}, collection)
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId('_pb_users_auth_')
// update collection data
unmarshal({
oauth2: {
enabled: false
},
otp: {
enabled: false
},
passwordAuth: {
enabled: true
}
}, collection)
return app.save(collection)
})