Skip to content

Commit

Permalink
bump version v0.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Chakravarthy7102 committed Jan 26, 2024
1 parent ba87a25 commit 0a29736
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

## [0.10.2] - 2024-01-26

- Fix typo on user roles section on user details page.

## [0.10.1] - 2024-01-09

- Fixed access denied modals zIndex value.
Expand Down
2 changes: 1 addition & 1 deletion build/static/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/static/js/bundle.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dashboard",
"version": "0.10.1",
"version": "0.10.2",
"private": true,
"dependencies": {
"@babel/core": "^7.16.0",
Expand Down
55 changes: 51 additions & 4 deletions server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import EmailVerification from "supertokens-node/recipe/emailverification";
import Passwordless from "supertokens-node/recipe/passwordless";
import Session from "supertokens-node/recipe/session";
import ThirdParty from "supertokens-node/recipe/thirdparty";
import ThirdPartyEmailPassword from "supertokens-node/recipe/thirdpartyemailpassword";
import ThirdPartyPasswordless from "supertokens-node/recipe/thirdpartypasswordless";
import UserMetaData from "supertokens-node/recipe/usermetadata";
import UserRoles from "supertokens-node/recipe/userroles";

Expand All @@ -36,7 +38,10 @@ app.use(morgan("[:date[iso]] :url :method :status :response-time ms - :res[conte
SuperTokens.init({
framework: "express",
supertokens: {
connectionURI: "try.supertokens.com",
// connectionURI: "https://st-dev-d771e1f1-9829-11ee-84fe-67fdc165bb46.aws.supertokens.io",
// apiKey: "S7ZFk9nTuTd=2BRpJ8RkeaU-Ud",
connectionURI: "https://st-prod-dd9533d0-9a53-11ee-8a37-b501d662a23d.aws.supertokens.io/",
apiKey: "2ws3Kg6LCPZaIKHl7iiXFNoFDO",
},
appInfo: {
appName: "Dashboard Dev Node",
Expand All @@ -46,7 +51,8 @@ SuperTokens.init({
},
recipeList: [
Dashboard.init({
apiKey: "test",
// apiKey: "test",
admins: ["[email protected]"],
// Keep this so that the dev server uses api key based login
override: {
functions: (original) => {
Expand All @@ -61,10 +67,44 @@ SuperTokens.init({
}),
UserMetaData.init(),
// These are initialised so that functionailty works in the node SDK
EmailPassword.init(),
EmailPassword.init({
// signUpFeature: {
// formFields: [
// {
// id: "email",
// async validate(value, tenantId, userContext) {
// return undefined;
// },
// },
// // {
// // id: "password",
// // async validate(value, tenantId, userContext) {
// // return "NO_PASSWORD";
// // },
// // },
// ],
// },
}),
ThirdPartyEmailPassword.init({}),
Passwordless.init({
contactMethod: "EMAIL_OR_PHONE",
flowType: "USER_INPUT_CODE_AND_MAGIC_LINK",
// async validateEmailAddress(email, tenantId) {
// return "PHONE_ERROR";
// },
// async validatePhoneNumber(phoneNumber, tenantId) {
// return "PHONE_ERROR";
// },
}),
ThirdPartyPasswordless.init({
contactMethod: "PHONE",
flowType: "USER_INPUT_CODE_AND_MAGIC_LINK",
// async validatePhoneNumber(phoneNumber, tenantId) {
// return "PHONE_ERROR";
// },
// async validateEmailAddress(phone, tenantId) {
// return "PHONE_ERROR";
// },
}),
ThirdParty.init({
signInAndUpFeature: {
Expand All @@ -88,7 +128,14 @@ SuperTokens.init({
mode: "REQUIRED",
}),
Session.init(),
AccountLinking.init(),
AccountLinking.init({
async shouldDoAutomaticAccountLinking(newAccountInfo, user, tenantId, userContext) {
return {
shouldAutomaticallyLink: true,
shouldRequireVerification: false,
};
},
}),
UserRoles.init(),
],
});
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
* under the License.
*/

export const package_version = "0.10.1";
export const package_version = "0.10.2";

0 comments on commit 0a29736

Please sign in to comment.