I am trying to build an integration with outlook because my requirement needs the calendar to be synced to a custom object. I am able to create a connection in apex using grant flow: user logs in->gets code->get token
The problem is I want to schedule a job to auto sync the calendar every day. How can I get the code without going through the login?