When was insulin discovered as a medication?

Insulin was discovered in 1923 by Frederick Banting. Prior to that it was expected that someone with Type 1 Diabetes would only live for 1 year after diagnosis.