Table of Contents

Interface IAuthenticator

Namespace
PowerSync.Common.Client.Connection
Assembly
PowerSync.Common.dll

Authenticates the PowerSync SDK against a PowerSync service, allowing it to download changes.

public interface IAuthenticator

Methods

InvalidateCredentials()

Invoked by the SDK when the PowerSync service has rejected credentials previously returned by ResolveCredentials().

If the connector returns cached tokens, it can use this as a hint to refresh its local state.

ResolveCredentials()

Resolves a JWT to use when connecting to a PowerSync service.

The SDK does not cache this value and will call this method multiple times while a database is connected. Implementations should consider caching credentials.