-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AiScript拡張] API Tokenを要求できる関数を追加 #10911
Comments
案
実行するとModalが立ち上がって確認画面が出る 「許可」を押すとTokenが、それ以外を押すとnullが返却される 使用例
|
lgtm |
(get というより request ではという気はする) |
あと可能なら AiScript 上で生トークンが動くのは避けたい(何かしらのインターフェースに隠蔽したい)気持ちがある |
プラグインからアクセスできないように別途MiLocalStorageの領域を確保するとかですかね(Tokenは |
ハンドル的な感じになるのかな |
あえてTokenを使用しないでAPIリクエストするような場面って在るんでしょうか?あるなら明示的にTokenを使用しないオプションを実装するのもアリかと |
生トークンを隠蔽するような実装にするのであれば、クライアント側に権限の照合をさせた上で、クライアントのマスタートークンでAPIリクエストを行うようにしても問題ないのではないかと思います。 |
Summary
AiScriptを使用するプログラムで一部のAPI通信を行う際に、
という手順を踏む必要があり、非常に煩雑なためほしい
The text was updated successfully, but these errors were encountered: