1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00

Added Apple ID OAuth adapter

This commit is contained in:
eldadfux 2019-06-05 23:35:23 +03:00
parent ff7524330c
commit af815c481c

62
src/Auth/OAuth/Apple.php Normal file
View file

@ -0,0 +1,62 @@
<?php
namespace Auth\OAuth;
use Auth\OAuth;
class Apple extends OAuth
{
//READ THE DOCS HERE: https://developer.apple.com/documentation/signinwithapplerestapi
/**
* @return string
*/
public function getName(): string
{
// TODO: Implement getName() method.
}
/**
* @return string
*/
public function getLoginURL(): string
{
// TODO: Implement getLoginURL() method.
}
/**
* @param string $code
* @return string
*/
public function getAccessToken(string $code): string
{
// TODO: Implement getAccessToken() method.
}
/**
* @param $accessToken
* @return string
*/
public function getUserID(string $accessToken): string
{
// TODO: Implement getUserID() method.
}
/**
* @param $accessToken
* @return string
*/
public function getUserEmail(string $accessToken): string
{
// TODO: Implement getUserEmail() method.
}
/**
* @param $accessToken
* @return string
*/
public function getUserName(string $accessToken): string
{
// TODO: Implement getUserName() method.
}
}