Is it possible to create a session manually?

I'm in the process of trying to link a device to a users account. Because this is so different from what better-auth provides currently, we're doing this external to better-auth, but once we've verified that a device has been linked to the account, we need to generate a session / have better auth manage the session for us. Is there a way to generate / create a session manually so that we can return it, and have better auth maintain it for us? These are external devices running android / ios, are not users, and are not linked to a user, but rather an organization / location. Cookies probably isn't a the best way to manage the session. I saw there was a jwt plugin. If we use the JWT plugin and cookies at the same time, in the same better-auth instance, are they going to play nicely together?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?