<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 16.4.0 -",
    "macOS: 13.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASAuthorizationWebBrowserPublicKeyCredentialManager/platformCredentials(forRelyingParty:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Authentication Services",
      "AuthenticationServices"
    ],
    "preciseIdentifier" : "s:So51ASAuthorizationWebBrowserPublicKeyCredentialManagerC22AuthenticationServicesE19platformCredentials15forRelyingPartySayAC0abc8PlatformdeF0VGSS_tYaF"
  },
  "title" : "platformCredentials(forRelyingParty:)"
}
-->

# platformCredentials(forRelyingParty:)

Gets a list of passkeys available for authenticating with the given relying party.

```
func platformCredentials(forRelyingParty relyingParty: String) async -> [ASAuthorizationWebBrowserPlatformPublicKeyCredential]
```

## Parameters

`relyingParty`

The name of the relying party, which you receive from the web server that issues the authentication challenge.

## Return Value

A list of credentials stored on the keychain, or managed by third-party credential managers, that are appropriate for responding to the current challenge.

## Discussion

Before calling this method, check that the value of [`authorizationStateForPlatformCredentials`](/documentation/AuthenticationServices/ASAuthorizationWebBrowserPublicKeyCredentialManager/authorizationStateForPlatformCredentials) is [`ASAuthorizationWebBrowserPublicKeyCredentialManager.AuthorizationState.authorized`](/documentation/AuthenticationServices/ASAuthorizationWebBrowserPublicKeyCredentialManager/AuthorizationState/authorized) and call [`requestAuthorizationForPublicKeyCredentials(_:)`](/documentation/AuthenticationServices/ASAuthorizationWebBrowserPublicKeyCredentialManager/requestAuthorizationForPublicKeyCredentials(_:)) if your app needs authorization. If you call this method without authorization, it returns an empty array.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)