Add function to get app credentials.