OAuth 2 implementation for Okta resources

Hello I am doing a proof of concept for Okta Resource API access using OAuth 2 authorization server. Are there any guides that I can use to implement it? I have seen multiple guides to understand that authorization flow for getting token, but do not know how to implement it.

Please let me know if there is a step by step documentation for implementing OAuth 2 based authorization server for Okta Resource API access. Also, where can I find more information on life cycle of Tokens and Authorization codes.

Please point me to right direction.

Thanks in advance!