[android-components](../../index.md) / [mozilla.components.service.fxa](../index.md) / [FirefoxAccount](index.md) / [getCurrentDeviceId](./get-current-device-id.md)

# getCurrentDeviceId

`fun getCurrentDeviceId(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/service/firefox-accounts/src/main/java/mozilla/components/service/fxa/FirefoxAccount.kt#L148)

Overrides [OAuthAccount.getCurrentDeviceId](../../mozilla.components.concept.sync/-o-auth-account/get-current-device-id.md)

Returns current FxA Device ID for an authenticated account.

**Return**
Current device's FxA ID, if available. `null` otherwise.

