File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Providers/Laravel/Facades Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -719,6 +719,16 @@ public function getToken()
719719 return $ this ->tokenRepo ->get ();
720720 }
721721
722+ /**
723+ * Determine whether token exists
724+ *
725+ * @return bool
726+ */
727+ public function hasToken ()
728+ {
729+ return $ this ->tokenRepo ->has ();
730+ }
731+
722732 /**
723733 * Returns any resource that is available to the authenticated
724734 * user. Reference Force.com's REST API guide to read about more
Original file line number Diff line number Diff line change 88 * @method static \Illuminate\Http\RedirectResponse|void authenticate()
99 * @method static void refresh()
1010 * @method static \Psr\Http\Message\ResponseInterface|void revoke()
11+ * @method static bool hasToken()
1112 * @method static void setCredentials(array $credentials)
1213 * @method static string|array versions(array $options = [])
1314 * @method static string|array resources(array $options = [])
5556 * @method static string|array actions(string $resource, array $options = [])
5657 * @method static string|array support(string $resource, array $options = [])
5758 * @method static \Omniphx\Forrest\Interfaces\RedirectInterface callback()
58- */
59+ */
5960class Forrest extends Facade
6061{
6162 /**
You can’t perform that action at this time.
0 commit comments