OAuth using accounts-password


I need to use oauth inside a project with email and password authentication, with no external provider, but it needs to be oauth-like authentication, with access token storage in users collection. Can someone give me an advice in how to do this using accounts-password and angular?