Skip to main content
Version: 1.4.0

Upgrade 1.0.0 - 1.1.0

File Changes
This upgrade theres some files has changed. Just replace it but if you have modified OpenSSO code, you should consider about these files:

File Changes
root
├── routes
│ ├── oauth.js
│ └── user.js
├── schemas
│ └── oauth.js
├── views
│ └── default
│ ├── email-reset.html
│ ├── sign-in.html
│ └── sso-login.html
├── changelog.md
├── config.default.js
├── config.js
├── postman_collection.json
├── package-lock.json
├── package-lock.json
.

Add new config.js

There is new configuration for oauth.

Edit file config.js
oauth: {
google: {
// ...
},
apple: {
enable: false,
clientId: 'com.xxx.login',
redirectURI: 'https://yourdomain.com'
}
}

Upgrade dependencies

  1. Uninstall old package
npm remove @fastify/view eta sqlite3 sequelize fastify
  1. Install new package
npm install @fastify/view@7 eta@2 sqlite3 sequelize fastify
  1. Audit Fix
npm audit fix
  1. Done

As you can see, there still 3 package left can't be upgraded because there is still no fix package available, since this is moderate status, we can ignore this for now.