app.services.oauth_users_service module

class app.services.oauth_users_service.OAuthUsersService(oauth_users_repository)[source]

Bases: BaseService

Service class for managing OAuth users records.

Parameters:

oauth_users_repository (OAuthUsersRepository)

oauth_users_repository

Repository instance for OAuth users.

Type:

OAuthUsersRepository

__init__(oauth_users_repository)[source]
Initializes the OAuthUsersService with the provided repositories and

services.

Parameters:

oauth_users_repository (OAuthUsersRepository) – The Oauth users repository instance.

Return type:

None

async get_user_by_sub(sub)[source]

Get a user by their sub.

Parameters:

sub (str) – The sub of the user to get.

Returns:

The user with the provided sub.

Return type:

Any