[android-components](../../index.md) / [mozilla.components.service.sync.logins](../index.md) / [GeckoLoginStorageDelegate](index.md) / [onLoginSave](./on-login-save.md)

# onLoginSave

`@Synchronized fun onLoginSave(login: `[`Login`](../../mozilla.components.concept.storage/-login/index.md)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/service/sync-logins/src/main/java/mozilla/components/service/sync/logins/GeckoLoginStorageDelegate.kt#L68)

Overrides [LoginStorageDelegate.onLoginSave](../../mozilla.components.concept.storage/-login-storage-delegate/on-login-save.md)

Called when a [login](../../mozilla.components.concept.storage/-login-storage-delegate/on-login-save.md#mozilla.components.concept.storage.LoginStorageDelegate$onLoginSave(mozilla.components.concept.storage.Login)/login) should be saved or updated.

