File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
py-langchain/backend/app/core Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2222with_async_authorization = auth0_ai .with_async_authorization (
2323 audience = settings .SHOP_API_AUDIENCE ,
2424 # add any scopes you want to use with your API
25- scopes = ["openid" , "buy: product" ],
25+ scopes = ["openid" , "product:buy " ],
2626 binding_message = lambda product ,
2727 quantity : f"Do you want to buy { quantity } { product } " ,
2828 user_id = lambda * _ , ** __ : ensure_config ()
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export const withAsyncAuthorization = auth0AI.withAsyncAuthorization({
3838 return config ?. configurable ?. _credentials ?. user ?. sub ;
3939 } ,
4040 bindingMessage : async ( { product, qty } ) => `Do you want to buy ${ qty } ${ product } ` ,
41- scopes : [ 'openid' , 'buy: product' ] ,
41+ scopes : [ 'openid' , 'product:buy ' ] ,
4242 audience : process . env [ 'SHOP_API_AUDIENCE' ] ! ,
4343 /**
4444 * Note: setting a requestedExpiry to >= 301 will currently ensure email is used. Otherwise,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export const withAsyncAuthorization = auth0AI.withAsyncAuthorization({
2727 return user ?. sub as string ;
2828 } ,
2929 bindingMessage : async ( { product, qty } ) => `Do you want to buy ${ qty } ${ product } ` ,
30- scopes : [ 'openid' , 'buy: product' ] ,
30+ scopes : [ 'openid' , 'product:buy ' ] ,
3131 audience : process . env [ 'AUDIENCE' ] ! ,
3232
3333 /**
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export const withAsyncAuthorization = auth0AI.withAsyncAuthorization({
2727 return user ?. sub as string ;
2828 } ,
2929 bindingMessage : async ( { product, qty } ) => `Do you want to buy ${ qty } ${ product } ` ,
30- scopes : [ 'openid' , 'buy: product' ] ,
30+ scopes : [ 'openid' , 'product:buy ' ] ,
3131 audience : process . env [ 'SHOP_API_AUDIENCE' ] ! ,
3232
3333 /**
You can’t perform that action at this time.
0 commit comments