That's one of the principles of private sector privacy legislation in terms of appropriate purposes: not going for more than what you need.
There's a specific example of this in the open banking legislation: the prohibition of what's called “screen scraping”. It indicates that you cannot for the purposes of providing a consumer in Canada with a product or service, use an interface or application to gain direct access to their data using their authentication.
This is an example of where you have that information for the purpose of authentication, but you shouldn't use it for another purpose. That's a good practice overall. If you want to use it for something different that's beyond the reasonable expectations of individuals, you should seek separate consent or make it clear in your policies.
