Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 1.1 KB

IdVerify.md

File metadata and controls

35 lines (31 loc) · 1.1 KB

idVerifySig-corona-plugin

  1. Add require statement
local idVerify = require( "plugin.idVerifySig" )
  1. Init the library providing a listener.
idVerify.init( listener )
  1. Call method to request signature. Data in a form of a lua table will be returned in the listerner specified in the init. Note that user has to be signed in to GameCenter for this to work (please look at implementation in sample app).
idVerify.getSignature()

Sample data returned. In case of error isError will be true.

 {
  "keyURL":"<keyURL>",
  "name":"IdVerifySigEvent",
  "salt":"<salt>",
  "signature":"<signature>",
  "timestamp":12345678,
  "isError":false
}

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.