I'm not sure how to handle the type for ```resource_owner::term()``` proper. For now i've declared it as ```binary()```, since this is the type which ```resource_owner``` should be converted to.