Swiftzerr
07/09/2022, 12:08 PMrp_st
07/09/2022, 12:09 PMrp_st
07/09/2022, 12:09 PMrp_st
07/09/2022, 12:09 PMSwiftzerr
07/09/2022, 12:40 PMsupertokens.init()
?rp_st
07/09/2022, 1:20 PMrp_st
07/09/2022, 1:20 PMSwiftzerr
07/10/2022, 2:32 PMSwiftzerr
07/10/2022, 2:36 PMSwiftzerr
07/10/2022, 2:36 PMrp_st
07/10/2022, 2:38 PMSwiftzerr
07/10/2022, 7:50 PMSwiftzerr
07/10/2022, 7:50 PMrp_st
07/11/2022, 4:13 AMCall in
01/14/2023, 6:32 PMrp_st
01/14/2023, 6:34 PMCall in
01/14/2023, 6:36 PMrp_st
01/14/2023, 6:37 PMrp_st
01/14/2023, 6:37 PMCall in
01/14/2023, 6:38 PMrp_st
01/14/2023, 6:38 PMCall in
01/14/2023, 6:39 PMrp_st
01/14/2023, 6:39 PMCall in
01/15/2023, 12:25 AMerrorHandler
method any useful seems like a few other frameworks like koa and awslambda don't use it.Call in
01/15/2023, 12:38 AMCall in
01/15/2023, 12:38 AMrp_st
01/15/2023, 5:07 AMrp_st
01/15/2023, 5:08 AMrp_st
01/15/2023, 5:11 AMCall in
01/15/2023, 10:17 AMCall in
01/15/2023, 10:26 AMCall in
01/15/2023, 11:32 AM/framework
by hand? Seems like the build command does not add any files here (e.g. for express: https://github.com/supertokens/supertokens-node/tree/master/framework/express)rp_st
01/15/2023, 11:35 AMCall in
01/15/2023, 11:38 AMrp_st
01/15/2023, 11:40 AMrp_st
01/15/2023, 11:40 AMCall in
01/15/2023, 12:10 PMhttps://<service>.api.bibliopus.app/
.Call in
01/15/2023, 12:12 PMauth.bibliopus.app
and then redirecting users to services could work ? I am not entirely sure about the best approach hereCall in
01/15/2023, 12:13 PMrp_st
01/15/2023, 1:31 PMCall in
01/15/2023, 2:20 PMrp_st
01/15/2023, 2:32 PMrp_st
01/15/2023, 2:32 PMCall in
01/15/2023, 3:00 PMCall in
01/15/2023, 5:12 PMrp_st
01/15/2023, 5:16 PMCall in
01/15/2023, 5:18 PMCall in
01/15/2023, 5:19 PMError: Since your API and website domain are different, for sessions to work, please use https on your apiDomain and dont set cookieSecure to false.
rp_st
01/15/2023, 5:20 PMCall in
01/15/2023, 5:27 PMjs
appInfo: {
// learn more about this on https://supertokens.com/docs/session/appinfo
appName: 'Bibliopus',
apiDomain: config.public.url, // this is the server domain (http://localhost:4000)
websiteDomain: 'app.bibliopus', // this is the capacitor id and I think this is not right at all
apiBasePath: '/auth',
websiteBasePath: '/auth',
},
rp_st
01/15/2023, 5:28 PMrp_st
01/15/2023, 5:29 PMrp_st
01/15/2023, 5:30 PMCall in
01/15/2023, 5:30 PMCall in
01/15/2023, 5:38 PMCall in
01/15/2023, 5:38 PMCall in
01/15/2023, 5:38 PMCall in
01/15/2023, 5:45 PMCall in
01/15/2023, 5:45 PMrp_st
01/15/2023, 5:55 PMrp_st
01/15/2023, 5:58 PMrobschilder
01/15/2023, 8:05 PMCall in
01/16/2023, 6:55 PMsh
@bibliopus/books:dev: 2023-01-16T18:53:18.595Z com.supertokens {t: "2023-01-16T18:53:18.595Z", message: "appInfo: {"appName":"Bibliopus","apiDomain":"http://localhost:4000","websiteDomain":"http://localhost:4000","apiBasePath":"/auth","websiteBasePath":"/auth"}", file: "/home/colin/projects/open-source/supertokens-node/lib/build/supertokens.js:338:18" sdkVer: "12.1.5"}
Call in
01/16/2023, 6:55 PMsh
@bibliopus/books:dev: 2023-01-16T18:53:18.595Z com.supertokens {t: "2023-01-16T18:53:18.595Z", message: "framework: h3", file: "/home/colin/projects/open-source/supertokens-node/lib/build/supertokens.js:340:18" sdkVer: "12.1.5"}
Call in
01/16/2023, 6:55 PMsh
@bibliopus/books:dev: 2023-01-16T18:53:18.599Z com.supertokens {t: "2023-01-16T18:53:18.599Z", message: "session init: antiCsrf: VIA_CUSTOM_HEADER", file: "/home/colin/projects/open-source/supertokens-node/lib/build/recipe/session/recipe.js:199:18" sdkVer: "12.1.5"}
Call in
01/16/2023, 6:55 PMsh
@bibliopus/books:dev: 2023-01-16T18:53:18.599Z com.supertokens {t: "2023-01-16T18:53:18.599Z", message: "session init: cookieDomain: undefined", file: "/home/colin/projects/open-source/supertokens-node/lib/build/recipe/session/recipe.js:200:18" sdkVer: "12.1.5"}
Call in
01/16/2023, 6:55 PMsh
@bibliopus/books:dev: 2023-01-16T18:53:18.599Z com.supertokens {t: "2023-01-16T18:53:18.599Z", message: "session init: cookieSameSite: none", file: "/home/colin/projects/open-source/supertokens-node/lib/build/recipe/session/recipe.js:201:18" sdkVer: "12.1.5"}
Call in
01/16/2023, 6:55 PMsh
@bibliopus/books:dev: 2023-01-16T18:53:18.600Z com.supertokens {t: "2023-01-16T18:53:18.600Z", message: "session init: cookieSecure: false", file: "/home/colin/projects/open-source/supertokens-node/lib/build/recipe/session/recipe.js:202:18" sdkVer: "12.1.5"}
Call in
01/16/2023, 6:56 PMsh
@bibliopus/books:dev: 2023-01-16T18:53:18.600Z com.supertokens {t: "2023-01-16T18:53:18.600Z", message: "session init: refreshTokenPath: /auth/session/refresh", file: "/home/colin/projects/open-source/supertokens-node/lib/build/recipe/session/recipe.js:203:18" sdkVer: "12.1.5"}
Call in
01/16/2023, 6:56 PMsh
@bibliopus/books:dev: 2023-01-16T18:53:18.600Z com.supertokens {t: "2023-01-16T18:53:18.600Z", message: "session init: sessionExpiredStatusCode: 401", file: "/home/colin/projects/open-source/supertokens-node/lib/build/recipe/session/recipe.js:206:18" sdkVer: "12.1.5"}
Call in
01/16/2023, 6:58 PMsh
@bibliopus/books:dev: 2023-01-16T18:57:07.540Z com.supertokens {t: "2023-01-16T18:57:07.540Z", message: "middleware: Started", file: "/home/colin/projects/open-source/supertokens-node/lib/build/supertokens.js:225:26" sdkVer: "12.1.5"}
@bibliopus/books:dev: 2023-01-16T18:57:07.541Z com.supertokens {t: "2023-01-16T18:57:07.540Z", message: "middleware: Not handling because request path did not start with config path. Request path: /favicon.ico", file: "/home/colin/projects/open-source/supertokens-node/lib/build/supertokens.js:232:30" sdkVer: "12.1.5"}
Call in
01/16/2023, 7:00 PMrp_st
01/16/2023, 7:10 PMrp_st
01/16/2023, 7:10 PMrp_st
01/16/2023, 7:11 PMCall in
01/16/2023, 7:16 PMjs
Session.init({
cookieSameSite: 'none',
}), // initializes session features
So should be initializedCall in
01/16/2023, 7:20 PMCall in
01/16/2023, 7:21 PMrp_st
01/16/2023, 7:21 PMCall in
01/16/2023, 7:22 PMsh
@bibliopus/books:dev: 2023-01-16T19:19:08.504Z com.supertokens {t: "2023-01-16T19:19:08.504Z", message: "middleware: Started", file: "/home/colin/projects/open-source/supertokens-node/lib/build/supertokens.js:225:26" sdkVer: "12.1.5"}
@bibliopus/books:dev: 2023-01-16T19:19:08.505Z com.supertokens {t: "2023-01-16T19:19:08.505Z", message: "middleware: requestRID is: undefined", file: "/home/colin/projects/open-source/supertokens-node/lib/build/supertokens.js:239:26" sdkVer: "12.1.5"}
@bibliopus/books:dev: 2023-01-16T19:19:08.505Z com.supertokens {t: "2023-01-16T19:19:08.505Z", message: "middleware: Checking recipe ID for match: thirdpartypasswordless", file: "/home/colin/projects/open-source/supertokens-node/lib/build/supertokens.js:287:34" sdkVer: "12.1.5"}
@bibliopus/books:dev: 2023-01-16T19:19:08.505Z com.supertokens {t: "2023-01-16T19:19:08.505Z", message: "middleware: Checking recipe ID for match: session", file: "/home/colin/projects/open-source/supertokens-node/lib/build/supertokens.js:287:34" sdkVer: "12.1.5"}
@bibliopus/books:dev: 2023-01-16T19:19:08.506Z com.supertokens {t: "2023-01-16T19:19:08.505Z", message: "middleware: Request being handled by recipe. ID is: /session/refresh", file: "/home/colin/projects/open-source/supertokens-node/lib/build/supertokens.js:292:38" sdkVer: "12.1.5"}
Call in
01/16/2023, 7:22 PMsh
@bibliopus/books:dev: 2023-01-16T19:19:08.506Z com.supertokens {t: "2023-01-16T19:19:08.506Z", message: "refreshSession: Started", file: "/home/colin/projects/open-source/supertokens-node/lib/build/recipe/session/recipeImplementation.js:295:26" sdkVer: "12.1.5"}
@bibliopus/books:dev: 2023-01-16T19:19:08.507Z com.supertokens {t: "2023-01-16T19:19:08.507Z", message: "refreshSession: UNAUTHORISED because idRefreshToken from cookies is undefined", file: "/home/colin/projects/open-source/supertokens-node/lib/build/recipe/session/recipeImplementation.js:298:30" sdkVer: "12.1.5"}
@bibliopus/books:dev: 2023-01-16T19:19:08.508Z com.supertokens {t: "2023-01-16T19:19:08.507Z", message: "errorHandler: Started", file: "/home/colin/projects/open-source/supertokens-node/lib/build/supertokens.js:316:26" sdkVer: "12.1.5"}
@bibliopus/books:dev: 2023-01-16T19:19:08.508Z com.supertokens {t: "2023-01-16T19:19:08.508Z", message: "errorHandler: Error is from SuperTokens recipe. Message: Session does not exist. Are you sending the session tokens in the request as cookies?", file: "/home/colin/projects/open-source/supertokens-node/lib/build/supertokens.js:318:30" sdkVer: "12.1.5"}
@bibliopus/books:dev: 2023-01-16T19:19:08.508Z com.supertokens {t: "2023-01-16T19:19:08.508Z", message: "errorHandler: Checking recipe for match: thirdpartypasswordless", file: "/home/colin/projects/open-source/supertokens-node/lib/build/supertokens.js:324:34" sdkVer: "12.1.5"}
Call in
01/16/2023, 7:23 PMsh
@bibliopus/books:dev: 2023-01-16T19:19:08.508Z com.supertokens {t: "2023-01-16T19:19:08.508Z", message: "errorHandler: Checking recipe for match: session", file: "/home/colin/projects/open-source/supertokens-node/lib/build/supertokens.js:324:34" sdkVer: "12.1.5"}
@bibliopus/books:dev: 2023-01-16T19:19:08.508Z com.supertokens {t: "2023-01-16T19:19:08.508Z", message: "errorHandler: Matched with recipeID: session", file: "/home/colin/projects/open-source/supertokens-node/lib/build/supertokens.js:328:38" sdkVer: "12.1.5"}
@bibliopus/books:dev: 2023-01-16T19:19:08.508Z com.supertokens {t: "2023-01-16T19:19:08.508Z", message: "errorHandler: returning UNAUTHORISED", file: "/home/colin/projects/open-source/supertokens-node/lib/build/recipe/session/recipe.js:133:34" sdkVer: "12.1.5"}
@bibliopus/books:dev: 2023-01-16T19:19:08.508Z com.supertokens {t: "2023-01-16T19:19:08.508Z", message: "errorHandler: Clearing cookies because of UNAUTHORISED response", file: "/home/colin/projects/open-source/supertokens-node/lib/build/recipe/session/recipe.js:139:38" sdkVer: "12.1.5"}
@bibliopus/books:dev: 2023-01-16T19:19:08.509Z com.supertokens {t: "2023-01-16T19:19:08.509Z", message: "Sending response to client with status code: 401", file: "/home/colin/projects/open-source/supertokens-node/lib/build/utils.js:88:14" sdkVer: "12.1.5"}
rp_st
01/16/2023, 7:23 PMCall in
01/16/2023, 7:23 PMrp_st
01/16/2023, 7:24 PMrp_st
01/16/2023, 7:24 PMrp_st
01/16/2023, 7:24 PMCall in
01/16/2023, 7:25 PMrp_st
01/16/2023, 7:25 PMrp_st
01/16/2023, 7:25 PMCall in
01/16/2023, 7:37 PMCall in
01/16/2023, 7:38 PMCall in
01/16/2023, 7:40 PMCall in
01/16/2023, 7:58 PMrp_st
01/17/2023, 2:57 AMrp_st
01/17/2023, 5:30 AMCall in
01/17/2023, 9:57 AMrp_st
01/17/2023, 9:57 AMproductdevbook
05/17/2023, 2:58 AM