import type { OAuthConfig , OAuthUserConfig } from "." ; export interface LineProfile { iss : string ; sub : string ; aud : string ; exp : number ; iat : number ; amr : string [ ] ; name : string ; picture : string ; user : any ; } export default function LINE < P extends Record < string , any > = LineProfile > ( options ) { return { id : "line" , name : "LINE" , type : "oauth" , authorization : { params : { scope : "openid profile" } } , idToken : true , wellKnown : "https://access.line.me/.well-known/openid-configuration" , profile ( profile ) { return { id : profile . sub , name : profile . name , email : profile . email , image : profile . picture , } ; } , client : { id_token_signed_response_alg : "HS256" , } , options , } ; }