kratos-selfservice-svelte-node icon indicating copy to clipboard operation
kratos-selfservice-svelte-node copied to clipboard

Hurdles to getting started

Open DePasqualeOrg opened this issue 3 years ago • 3 comments

I'm trying to get this example running, and I've encountered a few hurdles:

.svelte-kit/tsconfig.json, which is extended by tsconfig.json, is missing in the cloned repository. I had to create the directory and copy in a file from an existing SvelteKit project to get rid of the error.

I also got an error about App.PageError being renamed to App.Error in src/app.d.ts. Even though this is part of the code that has been commented out, I had to rename it before the app would run.

Next, it's not clear to me from the readme what is meant by the following:

export const KRATOS = "https://___KRATOS_FQDN___";
export const APP = "https://___APP_FQDN___";

What does FQDN mean? Perhaps these could be named more clearly to indicate what they are. Also, would it make sense to keep them in a .env file?

I'd also like to suggest making variable names such as pr and dm more descriptive.

DePasqualeOrg avatar Oct 08 '22 23:10 DePasqualeOrg

I'm using my Ory URL and http://localhost:3000 for KRATOS and APP. Is this correct? I keep getting redirected to Ory's hosted pages on all the routes. It looks like it's looking for a flowId in the URL search params, which isn't there. How can I make it show the custom UI for the routes?

DePasqualeOrg avatar Oct 09 '22 00:10 DePasqualeOrg

I entered the kratos domain of https://kratos.example.com for the KRATOS variable, and https://portal.example.com for the APP variable with a reverse proxy set to port 3000 and 4433 respectively. While it does redirect to this UI, it redirected me to /self-service/login instead of /login... Not sure if theres a way around that as I don't see it in the example configuration file.

👍🏼 for the .env file by the way.

theoparis avatar Jan 18 '23 11:01 theoparis

Hi @theoparis,

I will check it out when I have some free time. Sorry for not responding quickly

emrahcom avatar Feb 02 '23 10:02 emrahcom