GameKit.LocalPlayer.isAuthenticated
-----------------------------------

Checks whether local player is authenticated.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [GameKit](component_GameKit.md) | [8.5](newinversion85.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "GameKit.LocalPlayer.isAuthenticated" ) ### Parameters

none

### Result

Returns 1, 0 or error.

### Description

Checks whether local player is authenticated.  
A Boolean value that indicates whether a local player is currently signed in to Game Center.  
### Examples

Login if needed:

 If \[ MBS ( "GameKit.LocalPlayer.isAuthenticated" ) = 0 \]   
 # Show Login dialog  
 Set Variable \[ $r ; Value: MBS ( "[GameKit.LocalPlayer.Authenticate](GameKitLocalPlayerAuthenticate.md)" ) \]   
End If  
### See also

- [GameKit.Initialize](GameKitInitialize.md)
- [GameKit.LocalPlayer](GameKitLocalPlayer.md)
- [GameKit.LocalPlayer.Authenticate](GameKitLocalPlayerAuthenticate.md)
- [GameKit.LocalPlayer.AuthenticateError](GameKitLocalPlayerAuthenticateError.md)

This function is free to use.

Created 5th November 2018 , last changed 8th November 2018

  
[GameKit.LocalPlayer.ClearAuthenticateHandler](GameKitLocalPlayerClearAuthenticateHandler.md) - [GameKit.LocalPlayer.isUnderage](GameKitLocalPlayerisUnderage.md)

[HTML Version](GameKitLocalPlayerisAuthenticated.shtml)