sessionRefresh method

  1. @override
Future<Session> sessionRefresh({
  1. required Session session,
  2. Map<String, String>? vars,
})
override

Implementation

@override
Future<model.Session> sessionRefresh({
  required model.Session session,
  Map<String, String>? vars,
}) async {
  final res = await _client.sessionRefresh(
      SessionRefreshRequest(token: session.refreshToken, vars: vars));

  return model.Session(
    created: res.created,
    token: res.token,
    refreshToken: res.refreshToken,
  );
}