Question:Login component like view layer example?
Closed this issue · 4 comments
Valexr commented
I understand correctly — Login.svelte component like view layer example?
arlac77 commented
In 'tests/app/src/App.svelte' You can see
the session creation
export const session = new Session(localStorage);
and the use of a form to refresh (login) the session:
<Login {session} endpoint="/api/login" {result}>
</Login>
Valexr commented
Yep! & I can make my form instead Login?
arlac77 commented
Simply call
await login(session, endpoint, username, password);
from your form
Valexr commented
Ok. Thx 😊