Now handle logout by invalidating session in database
This commit is contained in:
parent
b99f4c3140
commit
e71f55cbc4
3 changed files with 31 additions and 2 deletions
|
@ -202,7 +202,10 @@ class OpenSimPageState extends State<OpenSimPage> {
|
|||
await settings
|
||||
.sendPacketToEndpoint(
|
||||
APIEndpoint.Logout,
|
||||
NullPacket());
|
||||
C2SLogoutPacket(
|
||||
ID: settings
|
||||
.currentUser!
|
||||
.loginToken));
|
||||
|
||||
SharedPreferences prefs =
|
||||
await SharedPreferences
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue