Passing current user through OAuth and into accounts-base.updateOrCreateUser...Service() method to udate logged in user

I’d like to check if user is logged in so that I could just add OAuth/SSO to logged in user. I don’t have a slightest clue what this package does that I’m using for SSO provider.