Skip to content

multiple instances #392

Open
Open
@cosbgn

Description

@cosbgn

I have a use case where I have 2 type of accounts on the same domain.

  • Student accounts
  • Teacher accounts

In my ideal case the two logins would be completely separate and independent. So when a teacher is logged in, if he "previews the student login page" it would still be marked as logged out.

Currently I can do this using subdomains, since cookies are not shared. But is there a better alternative? I'm thinking something like useUserSession({account_type:'teacher'}) and same on the backend I would use await getUserSession(event, {account_type:'teacher')

Is something like this at all possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions