user<T> static method

T? user<T>({
  1. String? key,
})

Get the auth user

Implementation

static T? user<T>({String? key}) {
  if (key != null) {
    return Backpack.instance.auth<T>(key: key);
  }
  return Backpack.instance.auth<T>();
}