signout method
Implementation
Future<Res> signout() {
if (authState != AuthState.authed || session == null) {
throw UserNotAuthorisedException();
}
Future<Res> call = this
.call(
'session/signout',
query: NawahQuery($pipe: [
nawahQueryPipeItem('_id', NawahQueryOper.$eq, session?['_id']),
]),
)
.catchError((err) {
NawahDI.get<INawahLogger>()?.error(this, 'signout call err: $err');
});
return call;
}