An open API service indexing awesome lists of open source software.

https://github.com/rensawamo/authentication_app

Golang/Flutter Firebase jwt authentication app
https://github.com/rensawamo/authentication_app

Last synced: 3 months ago
JSON representation

Golang/Flutter Firebase jwt authentication app

Awesome Lists containing this project

README

        

### ⭐️ zenn 記事は[こちら](https://zenn.dev/renren0112/articles/56de70adea15c3)

# シーケンス図
![image](https://github.com/user-attachments/assets/8362002b-e07e-40e1-84c8-db584c9af419)

# ビルド手順

### frontendで firebase の環境構築を行う
ちなみに ビルドはAndroid emulaterを想定
bundle id は com.example.frontend

### frontend と backend の
.env.example を .envに変え適切な値を代入

### backend

set up server
```sh
$ cd backend/cmd
$ go run main.go
```

### frontend
```sh
$ cd frontend
$ flutter run
```

![alt text](assets/image.png)
1. 認証 → CustomTokenをbackendから受け取り保存するまでの流れ
2. Reflesh Tokenの活用
3. 正常系 APIリクエスト
4. Tokenが無効の場合のAPIリクエスト

### 対応
REST/gRPC