diff --git a/app/config/templates/function.php b/app/config/templates/function.php
index d8426ad900..3a91fdfbb3 100644
--- a/app/config/templates/function.php
+++ b/app/config/templates/function.php
@@ -2077,6 +2077,61 @@ return [
'type' => 'text'
]
],
+ 'scopes' => ['databases.read', 'databases.write', 'collections.write', 'attributes.write', 'documents.read', 'documents.write']
+ ],
+ [
+ 'icon' => 'icon-apple',
+ 'id' => 'sign-in-with-apple',
+ 'name' => 'Sign in with Apple',
+ 'score' => 6,
+ 'tagline' => 'Use native Apple sign-in APIs on Apple devices with Appwrite Auth',
+ 'permissions' => ['any'],
+ 'events' => [],
+ 'cron' => '',
+ 'timeout' => 15,
+ 'useCases' => ['auth'],
+ 'runtimes' => [
+ ...getRuntimes($templateRuntimes['DART'], 'dart pub get', 'lib/main.dart', 'dart/sign_in_with_apple')
+ ],
+ 'instructions' => 'For documentation and instructions, check out file.',
+ 'vcsProvider' => 'github',
+ 'providerRepositoryId' => 'templates',
+ 'providerOwner' => 'appwrite',
+ 'providerVersion' => '0.2.*',
+ 'variables' => [
+ [
+ 'name' => 'BUNDLE_ID',
+ 'description' => 'Bundle ID of the app. Learn more.',
+ 'value' => '',
+ 'placeholder' => 'com.companyname.appname',
+ 'required' => true,
+ 'type' => 'text'
+ ],
+ [
+ 'name' => 'TEAM_ID',
+ 'description' => 'Team ID of the Apple Developer account.',
+ 'value' => '',
+ 'placeholder' => '6K3...5PH',
+ 'required' => true,
+ 'type' => 'text'
+ ],
+ [
+ 'name' => 'KEY_ID',
+ 'description' => 'Key ID required to communicate with Apple Developer services. Learn more.',
+ 'value' => '',
+ 'placeholder' => '9G8...6YF',
+ 'required' => true,
+ 'type' => 'text'
+ ],
+ [
+ 'name' => 'KEY_CONTENTS_ENCODED',
+ 'description' => 'Contents of Key required to communicated with Apple Developer services, encoded in Base64. Learn more.',
+ 'value' => '',
+ 'placeholder' => '7x8aA...Ab7c',
+ 'required' => true,
+ 'type' => 'password'
+ ]
+ ],
'scopes' => ['users.read', 'users.write']
]
];