This is how it needs to work, but in practice it doesn't really exist right now. (And, in the few places where it does exist, the price basically destroys a lot of the running costs advantages of an EV).
I've been charging from lampposts and other street chargers for 11 years now