func (r *Repo) Logout(ctx context.Context) error {
	if err := r.chttp.Logout(ctx); err != nil {
		return err
	}
	r.user = ""
	if _, e := r.state.Delete(ctx, currentUserDoc, ""); e != nil {
		return e
	}
	return nil
}
// Logout clears the auth session.
Logout clears the auth session.
// Logout clears the auth session .
func (r *Repo) Logout(ctx context.Context) error {
	if err := r.chttp.Logout(ctx); err != nil {
		return err
	}
	r.user = ""
	if _, e := r.state.Delete(ctx, currentUserDoc, ""); e != nil {
		return e
	}
	return nil
}
func ( r * Repo ) Logout ( ctx context . Context ) error { if err := r . chttp . Logout ( ctx ) ; err != nil { return err } r . user = " " if _ , e := r . state . Delete ( ctx , currentUserDoc , " " ) ; e != nil { return e } return nil }
Logout clears the auth session.
Logout clears the auth session .