> ## Documentation Index
> Fetch the complete documentation index at: https://sequence-0fb8d9e6-6256-forte-config.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 認証

> SequenceのUnity SDK用エコシステムウォレットのドキュメント

まず、Sequenceで構築されたコントラクトに限定されたインプリシットセッションから始めます。
または、各サインイン時に`IPermissions`オブジェクトを追加することで、明示的なセッションに直接接続することも可能です。

[権限の構成方法はこちらをご覧ください。](/sdk/unity/ecosystem-wallet/permissions)

### ストレージからウォレットを復元する

ウォレットが見つからない場合、この関数は `null` を返します。

```csharp theme={null}
IWallet wallet = SequenceWallet.RecoverFromStorage();
```

### サインイン用インターフェースを作成する

```csharp theme={null}
SequenceConnect connect = new SequenceConnect();
```

### メールでサインイン

```csharp theme={null}
string email = "your.mail@example.com";
IWallet wallet = await connect.SignInWithEmail(email);
```

### Google でサインイン

```csharp theme={null}
IWallet wallet = await connect.SignInWithGoogle();
```

### Apple でサインイン

```csharp theme={null}
IWallet wallet = await connect.SignInWithApple();
```

### パスキーでサインイン

```csharp theme={null}
IWallet wallet = await connect.SignInWithPasskey();
```

### ニーモニックでサインイン

```csharp theme={null}
IWallet wallet = await connect.SignInWithMnemonic();
```
