MCPcopy Create free account
hub / github.com/ampproject/amphtml / isAuthMethodValid

Function isAuthMethodValid

third_party/subscriptions-project/swg.js:16136–16138  ·  view source on GitHub ↗

* Validate the auth method. * * @param {string} authMethod * @return {boolean} if the current auth method is valid.

(authMethod)

Source from the content-addressed store, hash-verified

16134 * @return {boolean} if the current auth method is valid.
16135 */
16136function isAuthMethodValid(authMethod) {
16137 return Object.values(Constants.AuthMethod).includes(authMethod);
16138}
16139
16140/**
16141 * Validate PaymentDataRequest.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected